Class: TimeCamp::User

Inherits:
Resource show all
Defined in:
lib/ruby-timecamp/resources/user.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Resource

#attributes, #initialize, resource_name

Constructor Details

This class inherits a constructor from TimeCamp::Resource

Instance Attribute Details

#display_nameObject (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

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/ruby-timecamp/resources/user.rb', line 3

def email
  @email
end

#group_idObject (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_countObject (readonly)

Returns the value of attribute login_count.



3
4
5
# File 'lib/ruby-timecamp/resources/user.rb', line 3

def 
  @login_count
end

#login_timeObject (readonly)

Returns the value of attribute login_time.



3
4
5
# File 'lib/ruby-timecamp/resources/user.rb', line 3

def 
  @login_time
end

#synch_timeObject (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_idObject (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

.getObject

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