Class: Teamweek::Api::Project

Inherits:
Object
  • Object
show all
Includes:
HashConstructed
Defined in:
lib/teamweek/api/project.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.



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

def color
  @color
end

#foreign_idObject

Returns the value of attribute foreign_id.



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

def foreign_id
  @foreign_id
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#to_hashObject



11
12
13
14
15
16
17
# File 'lib/teamweek/api/project.rb', line 11

def to_hash
  {
    id: id,
    name: name,
    color: color
  }
end