Class: Bigcommerce::SubresourceActions

Inherits:
ResourceActions show all
Defined in:
lib/bigcommerce/subresource_actions.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary

Attributes inherited from ResourceActions

#options

Instance Method Summary collapse

Methods inherited from ResourceActions

#initialize

Constructor Details

This class inherits a constructor from Bigcommerce::ResourceActions

Instance Method Details

#included(base) ⇒ Object


3
4
5
6
7
8
9
# File 'lib/bigcommerce/subresource_actions.rb', line 3

def included(base)
  base.send(:include, Request.new(options[:uri]))
  base.extend(ClassMethods)
  options[:disable_methods] ||= []
  methods = ClassMethods.public_instance_methods & options[:disable_methods]
  methods.each { |name| base.send(:remove_method, name) }
end