Class: Dev::TargetProcess::Project
- Defined in:
- lib/firespring_dev_commands/target_process/project.rb
Overview
Class containing project information
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(data) ⇒ Project
Returns a new instance of Project.
7 8 9 10 11 12 |
# File 'lib/firespring_dev_commands/target_process/project.rb', line 7 def initialize(data) @data = data @id = data['Id'] @type = data['ResourceType'] @name = data['Name'] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/firespring_dev_commands/target_process/project.rb', line 5 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/firespring_dev_commands/target_process/project.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/firespring_dev_commands/target_process/project.rb', line 5 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
5 6 7 |
# File 'lib/firespring_dev_commands/target_process/project.rb', line 5 def type @type end |