Class: Opsmgr::Settings::Microbosh::Property
- Inherits:
-
Object
- Object
- Opsmgr::Settings::Microbosh::Property
- Defined in:
- lib/opsmgr/settings/microbosh/property.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ Property
constructor
A new instance of Property.
- #name ⇒ Object
- #value ⇒ Object
- #value=(value) ⇒ Object
Constructor Details
#initialize(hash) ⇒ Property
Returns a new instance of Property.
5 6 7 |
# File 'lib/opsmgr/settings/microbosh/property.rb', line 5 def initialize(hash) @hash = hash end |
Instance Method Details
#name ⇒ Object
9 10 11 |
# File 'lib/opsmgr/settings/microbosh/property.rb', line 9 def name @hash.fetch('identifier') rescue @hash['definition'] end |
#value ⇒ Object
13 14 15 |
# File 'lib/opsmgr/settings/microbosh/property.rb', line 13 def value @hash['value'] end |
#value=(value) ⇒ Object
17 18 19 |
# File 'lib/opsmgr/settings/microbosh/property.rb', line 17 def value=(value) @hash['value'] = value end |