Class: Backlog::Object::Project
- Inherits:
-
Object
- Object
- Backlog::Object::Project
- Defined in:
- lib/backlog/object.rb
Instance Attribute Summary collapse
-
#archived ⇒ Object
readonly
Returns the value of attribute archived.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(project) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(project) ⇒ Project
Returns a new instance of Project.
15 16 17 18 19 20 21 |
# File 'lib/backlog/object.rb', line 15 def initialize(project) @id = project['id'] @name = project['name'] @key = project['key'] @url = project['url'] @archived = project['archived'] end |
Instance Attribute Details
#archived ⇒ Object (readonly)
Returns the value of attribute archived.
22 23 24 |
# File 'lib/backlog/object.rb', line 22 def archived @archived end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
22 23 24 |
# File 'lib/backlog/object.rb', line 22 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
22 23 24 |
# File 'lib/backlog/object.rb', line 22 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
22 23 24 |
# File 'lib/backlog/object.rb', line 22 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
22 23 24 |
# File 'lib/backlog/object.rb', line 22 def url @url end |