Class: Spice::CookbookVersion
- Defined in:
- lib/spice/cookbook_version.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#cookbook_name ⇒ Object
readonly
Returns the value of attribute cookbook_name.
-
#definitions ⇒ Object
readonly
Returns the value of attribute definitions.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#libraries ⇒ Object
readonly
Returns the value of attribute libraries.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#providers ⇒ Object
readonly
Returns the value of attribute providers.
-
#recipes ⇒ Object
readonly
Returns the value of attribute recipes.
-
#resources ⇒ Object
readonly
Returns the value of attribute resources.
-
#root_files ⇒ Object
readonly
Returns the value of attribute root_files.
-
#templates ⇒ Object
readonly
Returns the value of attribute templates.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = Mash.new) ⇒ CookbookVersion
constructor
A new instance of CookbookVersion.
Methods inherited from Base
#[], attr_reader, get, get_or_new, #id, identity_map, #keys, #update
Constructor Details
#initialize(attrs = Mash.new) ⇒ CookbookVersion
Returns a new instance of CookbookVersion.
9 10 11 12 13 |
# File 'lib/spice/cookbook_version.rb', line 9 def initialize(attrs=Mash.new) super @attrs['json_class'] ||= "Chef::CookbookVersion" @attrs['chef_type'] ||= 'cookbook_version' end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def attributes @attributes end |
#cookbook_name ⇒ Object (readonly)
Returns the value of attribute cookbook_name.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def cookbook_name @cookbook_name end |
#definitions ⇒ Object (readonly)
Returns the value of attribute definitions.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def definitions @definitions end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def files @files end |
#libraries ⇒ Object (readonly)
Returns the value of attribute libraries.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def libraries @libraries end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def @metadata end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def name @name end |
#providers ⇒ Object (readonly)
Returns the value of attribute providers.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def providers @providers end |
#recipes ⇒ Object (readonly)
Returns the value of attribute recipes.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def recipes @recipes end |
#resources ⇒ Object (readonly)
Returns the value of attribute resources.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def resources @resources end |
#root_files ⇒ Object (readonly)
Returns the value of attribute root_files.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def root_files @root_files end |
#templates ⇒ Object (readonly)
Returns the value of attribute templates.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def templates @templates end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/spice/cookbook_version.rb', line 5 def version @version end |