Class: WorkSnaps::User

Inherits:
Base
  • Object
show all
Defined in:
lib/worksnaps/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, #attrs, fetch, fetch_or_new, identity_map, #initialize, store, #update

Constructor Details

This class inherits a constructor from WorkSnaps::Base

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def email
  @email
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def first_name
  @first_name
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def id
  @id
end

#is_in_daylight_timeObject (readonly)

Returns the value of attribute is_in_daylight_time.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def is_in_daylight_time
  @is_in_daylight_time
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def last_name
  @last_name
end

#loginObject (readonly)

Returns the value of attribute login.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def 
  @login
end

#passwordObject (readonly)

Returns the value of attribute password.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def password
  @password
end

#timezone_idObject (readonly)

Returns the value of attribute timezone_id.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def timezone_id
  @timezone_id
end

#timezone_nameObject (readonly)

Returns the value of attribute timezone_name.



5
6
7
# File 'lib/worksnaps/user.rb', line 5

def timezone_name
  @timezone_name
end

Instance Method Details

#full_nameObject



8
9
10
# File 'lib/worksnaps/user.rb', line 8

def full_name
	[last_name, first_name].join(', ')
end