Class: BuckKnife::Environment
- Inherits:
-
Object
- Object
- BuckKnife::Environment
- Defined in:
- lib/buckknife/environment.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
Instance Method Summary collapse
- #domain_name ⇒ Object
-
#initialize(name, data, nodes) ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize(name, data, nodes) ⇒ Environment
Returns a new instance of Environment.
5 6 7 8 9 |
# File 'lib/buckknife/environment.rb', line 5 def initialize(name, data, nodes) @data = data @name = name @nodes = nodes end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/buckknife/environment.rb', line 3 def name @name end |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
3 4 5 |
# File 'lib/buckknife/environment.rb', line 3 def nodes @nodes end |
Instance Method Details
#domain_name ⇒ Object
11 12 13 |
# File 'lib/buckknife/environment.rb', line 11 def domain_name @data['domain_name'] end |