Class: Spice::DataBagItem
Instance Attribute Summary collapse
-
#chef_type ⇒ Object
readonly
Returns the value of attribute chef_type.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attrs = Mash.new) ⇒ DataBagItem
constructor
A new instance of DataBagItem.
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_type ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/spice/data_bag_item.rb', line 5 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/spice/data_bag_item.rb', line 5 def name @name end |