Class: Teamweek::Api::User

Inherits:
Object
  • Object
show all
Includes:
HashConstructed
Defined in:
lib/teamweek/api/user.rb

Instance Attribute Summary collapse

Attributes included from HashConstructed

#raw_data

Instance Method Summary collapse

Methods included from HashConstructed

#initialize

Instance Attribute Details

#activeObject

Returns the value of attribute active.



12
13
14
# File 'lib/teamweek/api/user.rb', line 12

def active
  @active
end

#colorObject

Returns the value of attribute color.



10
11
12
# File 'lib/teamweek/api/user.rb', line 10

def color
  @color
end

#dummyObject

Returns the value of attribute dummy.



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

def dummy
  @dummy
end

#emailObject

Returns the value of attribute email.



7
8
9
# File 'lib/teamweek/api/user.rb', line 7

def email
  @email
end

#foreign_idObject

Returns the value of attribute foreign_id.



11
12
13
# File 'lib/teamweek/api/user.rb', line 11

def foreign_id
  @foreign_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#initialsObject

Returns the value of attribute initials.



9
10
11
# File 'lib/teamweek/api/user.rb', line 9

def initials
  @initials
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/teamweek/api/user.rb', line 6

def name
  @name
end

Instance Method Details

#to_hashObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/teamweek/api/user.rb', line 14

def to_hash
  {
    id: id,
    name: name,
    email: email,
    dummy: dummy,
    initials: initials,
    color: color,
    active: active
  }
end