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.



146
147
148
149
150
151
152
153
154
155
156
# File 'lib/seatsio/domain.rb', line 146

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.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def active
  @active
end

#designer_keyObject (readonly)

Returns the value of attribute designer_key.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def designer_key
  @designer_key
end

#emailObject (readonly)

Returns the value of attribute email.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def email
  @email
end

#idObject (readonly)

Returns the value of attribute id.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def id
  @id
end

#is_subaccountObject (readonly)

Returns the value of attribute is_subaccount.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def is_subaccount
  @is_subaccount
end

#nameObject (readonly)

Returns the value of attribute name.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def name
  @name
end

#public_keyObject (readonly)

Returns the value of attribute public_key.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def public_key
  @public_key
end

#secret_keyObject (readonly)

Returns the value of attribute secret_key.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def secret_key
  @secret_key
end

#settingsObject (readonly)

Returns the value of attribute settings.



143
144
145
# File 'lib/seatsio/domain.rb', line 143

def settings
  @settings
end