Class: Iugu::Plan
- Inherits:
-
APIResource
- Object
- Object
- APIResource
- Iugu::Plan
- Defined in:
- lib/iugu/plan.rb
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
Methods included from APIDelete
Methods included from APISave
Methods included from APICreate
Methods included from APIFetch
Methods inherited from APIResource
Methods inherited from Object
#add_accessor, #attributes, #copy, #initialize, #method_missing, #modified_attributes, #set_attributes
Constructor Details
This class inherits a constructor from Iugu::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Iugu::Object
Instance Method Details
#features ⇒ Object
12 13 14 |
# File 'lib/iugu/plan.rb', line 12 def features APIChildResource.new({ plan_id: self.id }, Iugu::PlanFeature) end |
#prices ⇒ Object
8 9 10 |
# File 'lib/iugu/plan.rb', line 8 def prices APIChildResource.new({ plan_id: self.id }, Iugu::PlanPrice) end |