Module: MagnumPI::API::Inheritance

Defined in:
lib/magnum-pi/api/inheritance.rb

Instance Method Summary collapse

Instance Method Details

#inherited(base) ⇒ Object



5
6
7
8
# File 'lib/magnum-pi/api/inheritance.rb', line 5

def inherited(base)
  base.instance_variable_set :@api, @api.deep_clone
  base.instance_variable_set :@resources, @resources.deep_clone
end