Class: Sensr::User
- Inherits:
-
SensrObject
- Object
- SensrObject
- Sensr::User
- Defined in:
- lib/sensr/user.rb
Class Method Summary collapse
-
.me ⇒ Object
Get the current user.
Instance Method Summary collapse
-
#initialize(hash) ⇒ User
constructor
:nodoc:.
Methods inherited from SensrObject
#attributes, #attributes=, #id, #method_missing
Constructor Details
#initialize(hash) ⇒ User
:nodoc:
10 11 12 13 14 |
# File 'lib/sensr/user.rb', line 10 def initialize(hash) # :nodoc: new_hash = hash["user"] new_hash["urls"] = hash["urls"] super(new_hash) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sensr::SensrObject