Class: Bosh::Director::Models::RuntimeConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh/director/models/runtime_config.rb

Instance Method Summary collapse

Instance Method Details

#before_createObject



5
6
7
# File 'lib/bosh/director/models/runtime_config.rb', line 5

def before_create
  self.created_at ||= Time.now
end

#manifestObject



13
14
15
# File 'lib/bosh/director/models/runtime_config.rb', line 13

def manifest
  Psych.load properties
end

#manifest=(runtime_config_hash) ⇒ Object



9
10
11
# File 'lib/bosh/director/models/runtime_config.rb', line 9

def manifest=(runtime_config_hash)
  self.properties = Psych.dump(runtime_config_hash)
end