Class: Opsmgr::Settings::Microbosh::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/opsmgr/settings/microbosh/property.rb

Instance Method Summary collapse

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

#nameObject



9
10
11
# File 'lib/opsmgr/settings/microbosh/property.rb', line 9

def name
  @hash.fetch('identifier') rescue @hash['definition']
end

#valueObject



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