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.
215 216 217 218 219 220 221 222 |
# File 'lib/seatsio/domain.rb', line 215 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.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def active @active end |
#designer_key ⇒ Object (readonly)
Returns the value of attribute designer_key.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def designer_key @designer_key end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def name @name end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def public_key @public_key end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
213 214 215 |
# File 'lib/seatsio/domain.rb', line 213 def secret_key @secret_key end |