Module: MagnumPI::API::Instance
- Defined in:
- lib/magnum-pi/api/instance.rb
Instance Method Summary collapse
Instance Method Details
#api ⇒ Object
11 12 13 |
# File 'lib/magnum-pi/api/instance.rb', line 11 def api @api end |
#initialize(params = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/magnum-pi/api/instance.rb', line 5 def initialize(params = {}) super() @api = self.class.api.finalize params @resources = self.class.resources.to_hash end |
#resources ⇒ Object
15 16 17 |
# File 'lib/magnum-pi/api/instance.rb', line 15 def resources @resources end |