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
12
13
# File 'lib/opsmgr/settings/microbosh/property.rb', line 9

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

#valueObject



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