Class: Ridley::DataBagObject::DataBagItemProxy Private

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

Overview

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.

Author:

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:



21
22
23
24
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 21

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.



26
27
28
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 26

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.



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

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.



17
18
19
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 17

def item_resource
  @item_resource
end