Class: Bosh::Director::Models::Template
- Defined in:
- lib/bosh/director/models/template.rb
Instance Method Summary collapse
- #logs ⇒ Object
- #logs=(logs_spec) ⇒ Object
- #package_names ⇒ Object
- #package_names=(packages) ⇒ Object
- #properties ⇒ Hash?
- #properties=(property_spec) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#logs ⇒ Object
25 26 27 28 |
# File 'lib/bosh/director/models/template.rb', line 25 def logs result = self.logs_json result ? Yajl::Parser.parse(result) : nil end |
#logs=(logs_spec) ⇒ Object
21 22 23 |
# File 'lib/bosh/director/models/template.rb', line 21 def logs=(logs_spec) self.logs_json = Yajl::Encoder.encode(logs_spec) end |
#package_names ⇒ Object
12 13 14 15 |
# File 'lib/bosh/director/models/template.rb', line 12 def package_names result = self.package_names_json result ? Yajl::Parser.parse(result) : nil end |
#package_names=(packages) ⇒ Object
17 18 19 |
# File 'lib/bosh/director/models/template.rb', line 17 def package_names=(packages) self.package_names_json = Yajl::Encoder.encode(packages) end |
#properties ⇒ Hash?
37 38 39 40 |
# File 'lib/bosh/director/models/template.rb', line 37 def properties result = self.properties_json result ? Yajl::Parser.parse(result) : nil end |
#properties=(property_spec) ⇒ Object
31 32 33 |
# File 'lib/bosh/director/models/template.rb', line 31 def properties=(property_spec) self.properties_json = Yajl::Encoder.encode(property_spec) end |