Class: Rafflesia::BillingHostedSession

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/billing/billing_hosted_session.rb

Constant Summary collapse

HASH_ATTRS =
{
  id: :id,
  url: :url
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/rafflesia/billing/billing_hosted_session.rb', line 13

def id
  @id
end

#urlObject

Returns the value of attribute url.



13
14
15
# File 'lib/rafflesia/billing/billing_hosted_session.rb', line 13

def url
  @url
end