Class: Teambox::User
- Defined in:
- lib/teambox-client/models/user.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #name ⇒ Object
-
#url ⇒ Object
:nodoc:.
Methods inherited from Resource
#created_at, #destroy, #id, #initialize, #inspect, #method_missing, #next, #prev, #reload, #save, #updated_at
Methods included from ReferenceList
#generate_references, #get_or_make_reference, #get_or_make_references, #get_reference, #set_reference
Constructor Details
This class inherits a constructor from Teambox::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Teambox::Resource
Instance Method Details
#name ⇒ Object
3 4 5 |
# File 'lib/teambox-client/models/user.rb', line 3 def name "#{@data['first_name']} #{@data['last_name']}" end |
#url ⇒ Object
:nodoc:
7 8 9 |
# File 'lib/teambox-client/models/user.rb', line 7 def url #:nodoc: "/users/#{@data['id']}" end |