Class: Seatsio::Domain::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/seatsio/domain.rb

Direct Known Subclasses

Subaccount

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Account

Returns a new instance of Account.



137
138
139
140
141
142
143
144
145
146
147
# File 'lib/seatsio/domain.rb', line 137

def initialize(data)
  @id = data['id']
  @secret_key = data['secretKey']
  @designer_key = data['designerKey']
  @public_key = data['publicKey']
  @name = data['name']
  @email = data['email']
  @is_subaccount = data['isSubaccount']
  @active = data['active']
  @settings = AccountSettings.new(data['settings']) if data['settings'] != nil
end

Instance Attribute Details

#activeObject (readonly)

Returns the value of attribute active.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def active
  @active
end

#designer_keyObject (readonly)

Returns the value of attribute designer_key.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def designer_key
  @designer_key
end

#emailObject (readonly)

Returns the value of attribute email.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def email
  @email
end

#idObject (readonly)

Returns the value of attribute id.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def id
  @id
end

#is_subaccountObject (readonly)

Returns the value of attribute is_subaccount.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def is_subaccount
  @is_subaccount
end

#nameObject (readonly)

Returns the value of attribute name.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def name
  @name
end

#public_keyObject (readonly)

Returns the value of attribute public_key.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def public_key
  @public_key
end

#secret_keyObject (readonly)

Returns the value of attribute secret_key.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def secret_key
  @secret_key
end

#settingsObject (readonly)

Returns the value of attribute settings.



134
135
136
# File 'lib/seatsio/domain.rb', line 134

def settings
  @settings
end