Class: TimeCamp::User
- Defined in:
- lib/ruby-timecamp/resources/user.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#group_id ⇒ Object
readonly
Returns the value of attribute group_id.
-
#login_count ⇒ Object
readonly
Returns the value of attribute login_count.
-
#login_time ⇒ Object
readonly
Returns the value of attribute login_time.
-
#synch_time ⇒ Object
readonly
Returns the value of attribute synch_time.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Class Method Summary collapse
-
.get ⇒ Object
CLASS METHODS #.
Methods inherited from Resource
#attributes, #initialize, resource_name
Constructor Details
This class inherits a constructor from TimeCamp::Resource
Instance Attribute Details
#display_name ⇒ Object (readonly)
Returns the value of attribute display_name.
3 4 5 |
# File 'lib/ruby-timecamp/resources/user.rb', line 3 def display_name @display_name end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/ruby-timecamp/resources/user.rb', line 3 def email @email end |
#group_id ⇒ Object (readonly)
Returns the value of attribute group_id.
3 4 5 |
# File 'lib/ruby-timecamp/resources/user.rb', line 3 def group_id @group_id end |
#login_count ⇒ Object (readonly)
Returns the value of attribute login_count.
3 4 5 |
# File 'lib/ruby-timecamp/resources/user.rb', line 3 def login_count @login_count end |
#login_time ⇒ Object (readonly)
Returns the value of attribute login_time.
3 4 5 |
# File 'lib/ruby-timecamp/resources/user.rb', line 3 def login_time @login_time end |
#synch_time ⇒ Object (readonly)
Returns the value of attribute synch_time.
3 4 5 |
# File 'lib/ruby-timecamp/resources/user.rb', line 3 def synch_time @synch_time end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
3 4 5 |
# File 'lib/ruby-timecamp/resources/user.rb', line 3 def user_id @user_id end |
Class Method Details
.get ⇒ Object
CLASS METHODS #
10 11 12 13 |
# File 'lib/ruby-timecamp/resources/user.rb', line 10 def self.get response = TimeCamp::Request.get(resource_name) return UserCollection.parse(response) end |