Class: SimpleMDM::Account

Inherits:
Hash
  • Object
show all
Includes:
Singleton
Defined in:
lib/simplemdm/account.rb

Instance Method Summary collapse

Constructor Details

#initializeAccount

Returns a new instance of Account.



7
8
9
10
11
# File 'lib/simplemdm/account.rb', line 7

def initialize
  hash, code = SimpleMDM::Base.fetch("account")

  self['name'] = hash['data']['attributes']['name']
end

Instance Method Details

#nameObject



13
14
15
# File 'lib/simplemdm/account.rb', line 13

def name
  self['name']
end