Class: Seatsio::Domain::Account
- Inherits:
-
Object
- Object
- Seatsio::Domain::Account
- Defined in:
- lib/seatsio/domain.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#designer_key ⇒ Object
readonly
Returns the value of attribute designer_key.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#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.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize(data) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(data) ⇒ Account
Returns a new instance of Account.
129 130 131 132 133 134 135 136 137 138 |
# File 'lib/seatsio/domain.rb', line 129 def initialize(data) @id = data['id'] @secret_key = data['secretKey'] @designer_key = data['designerKey'] @public_key = data['publicKey'] @name = data['name'] @email = data['email'] @active = data['active'] @settings = AccountSettings.new(data['settings']) if data['settings'] != nil end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
126 127 128 |
# File 'lib/seatsio/domain.rb', line 126 def active @active end |
#designer_key ⇒ Object (readonly)
Returns the value of attribute designer_key.
126 127 128 |
# File 'lib/seatsio/domain.rb', line 126 def designer_key @designer_key end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
126 127 128 |
# File 'lib/seatsio/domain.rb', line 126 def email @email end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
126 127 128 |
# File 'lib/seatsio/domain.rb', line 126 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
126 127 128 |
# File 'lib/seatsio/domain.rb', line 126 def name @name end |
#public_key ⇒ Object (readonly)
Returns the value of attribute public_key.
126 127 128 |
# File 'lib/seatsio/domain.rb', line 126 def public_key @public_key end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
126 127 128 |
# File 'lib/seatsio/domain.rb', line 126 def secret_key @secret_key end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
126 127 128 |
# File 'lib/seatsio/domain.rb', line 126 def settings @settings end |