Class: Rafflesia::BillingCheckoutSessionRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::BillingCheckoutSessionRequest
- Defined in:
- lib/rafflesia/billing/billing_checkout_session_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ email: :email, organization_id: :organization_id, plan: :plan, plan_id: :plan_id }.freeze
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#plan ⇒ Object
Returns the value of attribute plan.
-
#plan_id ⇒ Object
Returns the value of attribute plan_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ BillingCheckoutSessionRequest
constructor
A new instance of BillingCheckoutSessionRequest.
Constructor Details
#initialize(json) ⇒ BillingCheckoutSessionRequest
Returns a new instance of BillingCheckoutSessionRequest.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/billing/billing_checkout_session_request.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @email = hash[:email] @organization_id = hash[:organization_id] @plan = hash[:plan] @plan_id = hash[:plan_id] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
15 16 17 |
# File 'lib/rafflesia/billing/billing_checkout_session_request.rb', line 15 def email @email end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
15 16 17 |
# File 'lib/rafflesia/billing/billing_checkout_session_request.rb', line 15 def organization_id @organization_id end |
#plan ⇒ Object
Returns the value of attribute plan.
15 16 17 |
# File 'lib/rafflesia/billing/billing_checkout_session_request.rb', line 15 def plan @plan end |
#plan_id ⇒ Object
Returns the value of attribute plan_id.
15 16 17 |
# File 'lib/rafflesia/billing/billing_checkout_session_request.rb', line 15 def plan_id @plan_id end |