Class: Netatmo::User
- Inherits:
-
Object
- Object
- Netatmo::User
- Defined in:
- lib/netatmo/user.rb
Instance Attribute Summary collapse
-
#administrative ⇒ Object
Returns the value of attribute administrative.
-
#mail ⇒ Object
Returns the value of attribute mail.
Instance Method Summary collapse
-
#initialize(data) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(data) ⇒ User
Returns a new instance of User.
7 8 9 10 |
# File 'lib/netatmo/user.rb', line 7 def initialize(data) self.mail = data['mail'] self.administrative = Netatmo::Administrative.new(data['administrative']) end |
Instance Attribute Details
#administrative ⇒ Object
Returns the value of attribute administrative.
5 6 7 |
# File 'lib/netatmo/user.rb', line 5 def administrative @administrative end |
#mail ⇒ Object
Returns the value of attribute mail.
5 6 7 |
# File 'lib/netatmo/user.rb', line 5 def mail @mail end |