Class: Mingle::ProjectVariable
- Inherits:
-
Object
- Object
- Mingle::ProjectVariable
- Defined in:
- lib/mingle_macro_models/project_variable.rb
Overview
This is a lightweight representation of a ProjectVariable in Mingle A property defintion is a mnemonic name that represents a particular value for one or more PropertyDefinitions
Instance Method Summary collapse
-
#initialize(full_project_variable) ⇒ ProjectVariable
constructor
A new instance of ProjectVariable.
-
#name ⇒ Object
returns: The name of this variable.
-
#value ⇒ Object
returns: The display value of the value configured for this project variable.
Constructor Details
#initialize(full_project_variable) ⇒ ProjectVariable
Returns a new instance of ProjectVariable.
9 10 11 |
# File 'lib/mingle_macro_models/project_variable.rb', line 9 def initialize(full_project_variable) @full_project_variable = full_project_variable end |
Instance Method Details
#name ⇒ Object
returns: The name of this variable
14 15 16 |
# File 'lib/mingle_macro_models/project_variable.rb', line 14 def name @full_project_variable.name end |
#value ⇒ Object
returns: The display value of the value configured for this project variable
19 20 21 |
# File 'lib/mingle_macro_models/project_variable.rb', line 19 def value @full_project_variable.display_value end |