Class: Teamweek::Api::Task

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

Instance Attribute Summary collapse

Attributes included from HashConstructed

#raw_data

Instance Method Summary collapse

Methods included from HashConstructed

#initialize

Instance Attribute Details

#colorObject

Returns the value of attribute color.



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

def color
  @color
end

#doneObject

Returns the value of attribute done.



13
14
15
# File 'lib/teamweek/api/task.rb', line 13

def done
  @done
end

#end_dateObject

Returns the value of attribute end_date.



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

def end_date
  @end_date
end

#foreign_idObject

Returns the value of attribute foreign_id.



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

def foreign_id
  @foreign_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#project_idObject

Returns the value of attribute project_id.



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

def project_id
  @project_id
end

#start_dateObject

Returns the value of attribute start_date.



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

def start_date
  @start_date
end

#user_idObject

Returns the value of attribute user_id.



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

def user_id
  @user_id
end

Instance Method Details

#to_hashObject



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

def to_hash
  {
    id: id,
    name: name,
    color: color,
    start_date: start_date,
    end_date: end_date,
    project_id: project_id,
    user_id: user_id,
    done: done
  }
end