Class: SimpleMDM::Account
- Inherits:
-
Hash
- Object
- Hash
- SimpleMDM::Account
- Includes:
- Singleton
- Defined in:
- lib/simplemdm/account.rb
Instance Method Summary collapse
-
#initialize ⇒ Account
constructor
A new instance of Account.
- #name ⇒ Object
Constructor Details
#initialize ⇒ Account
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
#name ⇒ Object
13 14 15 |
# File 'lib/simplemdm/account.rb', line 13 def name self['name'] end |