Class: Ridley::DataBagObject::DataBagItemProxy Private
- Inherits:
-
Object
- Object
- Ridley::DataBagObject::DataBagItemProxy
- 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
- #data_bag_object ⇒ Object readonly private
- #item_resource ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(data_bag_object, item_resource) ⇒ DataBagItemProxy
constructor
private
A new instance of DataBagItemProxy.
- #method_missing(fun, *args, &block) ⇒ Object private
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.
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_object ⇒ Object (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_resource ⇒ Object (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 |