Class: Nephophobia::Response::Project

Inherits:
Object
  • Object
show all
Defined in:
lib/nephophobia/response/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Project

Returns a new instance of Project.



8
9
10
11
12
13
14
15
# File 'lib/nephophobia/response/project.rb', line 8

def initialize attributes
  @attributes = attributes

  @name        = attributes['projectname']
  @manager_id  = attributes['projectManagerId']
  @description = attributes['description']
  @member      = attributes['member']
end

Instance Attribute Details

#attributesObject

Returns the value of attribute attributes.



6
7
8
# File 'lib/nephophobia/response/project.rb', line 6

def attributes
  @attributes
end

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'lib/nephophobia/response/project.rb', line 4

def description
  @description
end

#manager_idObject (readonly)

Returns the value of attribute manager_id.



4
5
6
# File 'lib/nephophobia/response/project.rb', line 4

def manager_id
  @manager_id
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/nephophobia/response/project.rb', line 4

def name
  @name
end