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 12 13 |
# File 'lib/opsmgr/settings/microbosh/property.rb', line 9 def name @hash.fetch('identifier') rescue @hash['definition'] end |
#value ⇒ Object
15 16 17 |
# File 'lib/opsmgr/settings/microbosh/property.rb', line 15 def value @hash['value'] end |
#value=(value) ⇒ Object
19 20 21 |
# File 'lib/opsmgr/settings/microbosh/property.rb', line 19 def value=(value) @hash['value'] = value end |