Class: Rafflesia::BillingSwitchPlanRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BillingSwitchPlanRequest
- Defined in:
- lib/rafflesia/billing/billing_switch_plan_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ organization_id: :organization_id, target_plan: :target_plan }.freeze
Instance Attribute Summary collapse
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#target_plan ⇒ Object
Returns the value of attribute target_plan.
Instance Method Summary collapse
-
#initialize(json) ⇒ BillingSwitchPlanRequest
constructor
A new instance of BillingSwitchPlanRequest.
Constructor Details
#initialize(json) ⇒ BillingSwitchPlanRequest
Returns a new instance of BillingSwitchPlanRequest.
17 18 19 20 21 22 |
# File 'lib/rafflesia/billing/billing_switch_plan_request.rb', line 17 def initialize(json) super() hash = self.class.normalize(json) @organization_id = hash[:organization_id] @target_plan = hash[:target_plan] end |
Instance Attribute Details
#organization_id ⇒ Object
Returns the value of attribute organization_id.
13 14 15 |
# File 'lib/rafflesia/billing/billing_switch_plan_request.rb', line 13 def organization_id @organization_id end |
#target_plan ⇒ Object
Returns the value of attribute target_plan.
13 14 15 |
# File 'lib/rafflesia/billing/billing_switch_plan_request.rb', line 13 def target_plan @target_plan end |