Class: Spice::Environment
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#chef_type ⇒ Object
readonly
Returns the value of attribute chef_type.
-
#cookbook_versions ⇒ Object
readonly
Returns the value of attribute cookbook_versions.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#json_class ⇒ Object
readonly
Returns the value of attribute json_class.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = Mash.new) ⇒ Environment
constructor
A new instance of Environment.
Methods inherited from Base
#[], attr_reader, get, get_or_new, #id, identity_map, #keys, #update
Constructor Details
#initialize(attrs = Mash.new) ⇒ Environment
Returns a new instance of Environment.
8 9 10 11 12 13 14 |
# File 'lib/spice/environment.rb', line 8 def initialize(attrs=Mash.new) super @attrs['json_class'] ||= "Chef::Environment" @attrs['chef_type'] ||= "environment" @attrs['attributes'] ||= Mash.new @attrs['cookbook_version'] ||= Mash.new end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/spice/environment.rb', line 5 def attributes @attributes end |
#chef_type ⇒ Object (readonly)
Returns the value of attribute chef_type.
5 6 7 |
# File 'lib/spice/environment.rb', line 5 def chef_type @chef_type end |
#cookbook_versions ⇒ Object (readonly)
Returns the value of attribute cookbook_versions.
5 6 7 |
# File 'lib/spice/environment.rb', line 5 def cookbook_versions @cookbook_versions end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/spice/environment.rb', line 5 def description @description end |
#json_class ⇒ Object (readonly)
Returns the value of attribute json_class.
5 6 7 |
# File 'lib/spice/environment.rb', line 5 def json_class @json_class end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/spice/environment.rb', line 5 def name @name end |