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.



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

#activeObject (readonly)

Returns the value of attribute active.



126
127
128
# File 'lib/seatsio/domain.rb', line 126

def active
  @active
end

#designer_keyObject (readonly)

Returns the value of attribute designer_key.



126
127
128
# File 'lib/seatsio/domain.rb', line 126

def designer_key
  @designer_key
end

#emailObject (readonly)

Returns the value of attribute email.



126
127
128
# File 'lib/seatsio/domain.rb', line 126

def email
  @email
end

#idObject (readonly)

Returns the value of attribute id.



126
127
128
# File 'lib/seatsio/domain.rb', line 126

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



126
127
128
# File 'lib/seatsio/domain.rb', line 126

def name
  @name
end

#public_keyObject (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_keyObject (readonly)

Returns the value of attribute secret_key.



126
127
128
# File 'lib/seatsio/domain.rb', line 126

def secret_key
  @secret_key
end

#settingsObject (readonly)

Returns the value of attribute settings.



126
127
128
# File 'lib/seatsio/domain.rb', line 126

def settings
  @settings
end