Class: Spice::DataBagItem

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

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

#[], attr_reader, get, get_or_new, identity_map, #keys, #update

Constructor Details

#initialize(attrs = Mash.new) ⇒ DataBagItem

Returns a new instance of DataBagItem.


7
8
9
10
# File 'lib/spice/data_bag_item.rb', line 7

def initialize(attrs=Mash.new)
  super
  @attrs['chef_type'] ||= 'data_bag_item'
end

Instance Attribute Details

#chef_typeObject (readonly)

Returns the value of attribute chef_type


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

def chef_type
  @chef_type
end

#idObject (readonly)

Returns the value of attribute id


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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name


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

def name
  @name
end