Class: PRX::Model::User
- Includes:
- Representer::Full::UserRepresenter, Roar::JSON
- Defined in:
- lib/prx/model/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#login ⇒ Object
Returns the value of attribute login.
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
#class_path_part, #find_by_id, #initialize, #request, request, #save
Constructor Details
This class inherits a constructor from PRX::Model::Base
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
11 12 13 |
# File 'lib/prx/model/user.rb', line 11 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
11 12 13 |
# File 'lib/prx/model/user.rb', line 11 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name.
11 12 13 |
# File 'lib/prx/model/user.rb', line 11 def last_name @last_name end |
#login ⇒ Object
Returns the value of attribute login.
11 12 13 |
# File 'lib/prx/model/user.rb', line 11 def login @login end |
Class Method Details
.me ⇒ Object
13 14 15 |
# File 'lib/prx/model/user.rb', line 13 def self.me request(:path=>'/me') end |