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