Class: Rafflesia::BillingSwitchPlanRequest

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_idObject

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_planObject

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