Class: Lamma::Environment
- Inherits:
-
Object
- Object
- Lamma::Environment
- Defined in:
- lib/lamma/environment.rb
Instance Attribute Summary collapse
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(yaml) ⇒ Environment
constructor
A new instance of Environment.
- #to_h ⇒ Object
Constructor Details
#initialize(yaml) ⇒ Environment
Returns a new instance of Environment.
5 6 7 |
# File 'lib/lamma/environment.rb', line 5 def initialize(yaml) @variables = yaml.fetch('variables', {}) end |
Instance Attribute Details
#variables ⇒ Object
Returns the value of attribute variables.
3 4 5 |
# File 'lib/lamma/environment.rb', line 3 def variables @variables end |
Instance Method Details
#to_h ⇒ Object
9 10 11 12 13 |
# File 'lib/lamma/environment.rb', line 9 def to_h { variables: @variables } end |