Class: Seatsio::Subaccount
- Inherits:
-
Object
- Object
- Seatsio::Subaccount
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#designer_key ⇒ Object
readonly
Returns the value of attribute designer_key.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
-
#secret_key ⇒ Object
readonly
Returns the value of attribute secret_key.
Instance Method Summary collapse
-
#initialize(data) ⇒ Subaccount
constructor
A new instance of Subaccount.
Constructor Details
#initialize(data) ⇒ Subaccount
Returns a new instance of Subaccount.
250 251 252 253 254 255 256 257 |
# File 'lib/seatsio/domain.rb', line 250 def initialize(data) @id = data['id'] @public_key = data['publicKey'] @secret_key = data['secretKey'] @designer_key = data['designerKey'] @name = data['name'] @active = data['active'] end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
248 249 250 |
# File 'lib/seatsio/domain.rb', line 248 def active @active end |
#designer_key ⇒ Object (readonly)
Returns the value of attribute designer_key.
248 249 250 |
# File 'lib/seatsio/domain.rb', line 248 def designer_key @designer_key end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
248 249 250 |
# File 'lib/seatsio/domain.rb', line 248 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
248 249 250 |
# File 'lib/seatsio/domain.rb', line 248 def name @name end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
248 249 250 |
# File 'lib/seatsio/domain.rb', line 248 def public_key @public_key end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
248 249 250 |
# File 'lib/seatsio/domain.rb', line 248 def secret_key @secret_key end |