Class: Torque::Project
- Inherits:
-
Object
- Object
- Torque::Project
- Defined in:
- lib/torque/project/project.rb
Overview
Stores the name and id of a single Pivotal project
Instance Attribute Summary collapse
-
#current ⇒ Object
True if this is the current project, else false.
-
#id ⇒ Object
readonly
The project ID.
-
#name ⇒ Object
readonly
The project name.
Instance Method Summary collapse
-
#initialize(id, name, current = false) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(id, name, current = false) ⇒ Project
Returns a new instance of Project.
23 24 25 26 27 |
# File 'lib/torque/project/project.rb', line 23 def initialize(id, name, current=false) @current = current @id = id @name = name end |
Instance Attribute Details
#current ⇒ Object
True if this is the current project, else false
9 10 11 |
# File 'lib/torque/project/project.rb', line 9 def current @current end |
#id ⇒ Object (readonly)
The project ID
13 14 15 |
# File 'lib/torque/project/project.rb', line 13 def id @id end |
#name ⇒ Object (readonly)
The project name
17 18 19 |
# File 'lib/torque/project/project.rb', line 17 def name @name end |