Class: Mingle::ProjectVariable

Inherits:
Object
  • Object
show all
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

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

#nameObject

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

#valueObject

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