Class: Ridley::DataBagObject::DataBagItemProxy Private

Inherits:
Object
  • Object
show all
Defined in:
lib/ridley/chef_objects/data_bag_object.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data_bag_object, item_resource) ⇒ DataBagItemProxy

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DataBagItemProxy.

Parameters:



19
20
21
22
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 19

def initialize(data_bag_object, item_resource)
  @data_bag_object = data_bag_object
  @item_resource   = item_resource
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(fun, *args, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



24
25
26
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 24

def method_missing(fun, *args, &block)
  @item_resource.send(fun, data_bag_object, *args, &block)
end

Instance Attribute Details

#data_bag_objectObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



14
15
16
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 14

def data_bag_object
  @data_bag_object
end

#item_resourceObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 15

def item_resource
  @item_resource
end