Class: Bosh::Director::Models::Template
- Defined in:
- lib/bosh/director/models/template.rb
Instance Method Summary collapse
- #consumes ⇒ Object
- #consumes=(consumes_spec) ⇒ Object
- #logs ⇒ Object
- #logs=(logs_spec) ⇒ Object
- #package_names ⇒ Object
- #package_names=(packages) ⇒ Object
- #properties ⇒ Hash?
- #properties=(property_spec) ⇒ Object
- #provides ⇒ Object
- #provides=(provides_spec) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#consumes ⇒ Object
43 44 45 |
# File 'lib/bosh/director/models/template.rb', line 43 def consumes object_or_nil(self.consumes_json) end |
#consumes=(consumes_spec) ⇒ Object
39 40 41 |
# File 'lib/bosh/director/models/template.rb', line 39 def consumes=(consumes_spec) self.consumes_json = json_encode(consumes_spec) end |
#logs ⇒ Object
24 25 26 |
# File 'lib/bosh/director/models/template.rb', line 24 def logs object_or_nil(self.logs_json) end |
#logs=(logs_spec) ⇒ Object
20 21 22 |
# File 'lib/bosh/director/models/template.rb', line 20 def logs=(logs_spec) self.logs_json = json_encode(logs_spec) end |
#package_names ⇒ Object
12 13 14 |
# File 'lib/bosh/director/models/template.rb', line 12 def package_names object_or_nil(self.package_names_json) end |
#package_names=(packages) ⇒ Object
16 17 18 |
# File 'lib/bosh/director/models/template.rb', line 16 def package_names=(packages) self.package_names_json = json_encode(packages) end |
#properties ⇒ Hash?
35 36 37 |
# File 'lib/bosh/director/models/template.rb', line 35 def properties object_or_nil(self.properties_json) end |
#properties=(property_spec) ⇒ Object
29 30 31 |
# File 'lib/bosh/director/models/template.rb', line 29 def properties=(property_spec) self.properties_json = json_encode(property_spec) end |
#provides ⇒ Object
51 52 53 |
# File 'lib/bosh/director/models/template.rb', line 51 def provides object_or_nil(self.provides_json) end |
#provides=(provides_spec) ⇒ Object
47 48 49 |
# File 'lib/bosh/director/models/template.rb', line 47 def provides=(provides_spec) self.provides_json = json_encode(provides_spec) end |