Class: Project
- Inherits:
-
Object
- Object
- Project
- Defined in:
- lib/project.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(id, name, path) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(id, name, path) ⇒ Project
Returns a new instance of Project.
4 5 6 7 8 |
# File 'lib/project.rb', line 4 def initialize(id, name, path) @id = id @name = name @path = path end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/project.rb', line 2 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/project.rb', line 2 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
2 3 4 |
# File 'lib/project.rb', line 2 def path @path end |