Class: Spice::CookbookVersion

Inherits:
Base
  • Object
show all
Defined in:
lib/spice/cookbook_version.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def attributes
  @attributes
end

#cookbook_nameObject (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

#definitionsObject (readonly)

Returns the value of attribute definitions


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def definitions
  @definitions
end

#filesObject (readonly)

Returns the value of attribute files


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def files
  @files
end

#librariesObject (readonly)

Returns the value of attribute libraries


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def libraries
  @libraries
end

#metadataObject (readonly)

Returns the value of attribute metadata


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def 
  
end

#nameObject (readonly)

Returns the value of attribute name


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def name
  @name
end

#providersObject (readonly)

Returns the value of attribute providers


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def providers
  @providers
end

#recipesObject (readonly)

Returns the value of attribute recipes


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def recipes
  @recipes
end

#resourcesObject (readonly)

Returns the value of attribute resources


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def resources
  @resources
end

#root_filesObject (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

#templatesObject (readonly)

Returns the value of attribute templates


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def templates
  @templates
end

#versionObject (readonly)

Returns the value of attribute version


5
6
7
# File 'lib/spice/cookbook_version.rb', line 5

def version
  @version
end