Class: Nephophobia::Response::Project
- Inherits:
-
Object
- Object
- Nephophobia::Response::Project
- Defined in:
- lib/nephophobia/response/project.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#manager_id ⇒ Object
readonly
Returns the value of attribute manager_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Project
constructor
A new instance of Project.
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
#attributes ⇒ Object
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/nephophobia/response/project.rb', line 6 def attributes @attributes end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/nephophobia/response/project.rb', line 4 def description @description end |
#manager_id ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/nephophobia/response/project.rb', line 4 def name @name end |