Class: Model::Scenario
- Inherits:
-
Object
- Object
- Model::Scenario
- Defined in:
- lib/models/scenario.rb
Instance Attribute Summary collapse
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(node, repository) ⇒ Scenario
constructor
A new instance of Scenario.
- #value(key) ⇒ Object
Constructor Details
Instance Attribute Details
#query ⇒ Object (readonly)
Returns the value of attribute query.
3 4 5 |
# File 'lib/models/scenario.rb', line 3 def query @query end |
Instance Method Details
#description ⇒ Object
9 10 11 |
# File 'lib/models/scenario.rb', line 9 def description query.value(LV.description) end |
#value(key) ⇒ Object
13 14 15 16 |
# File 'lib/models/scenario.rb', line 13 def value(key) camelized_key = camelize(key.to_s) query.value(LV.uri_for(camelized_key)).to_s end |