Class: Ridley::DataBagObject::DataBagItemProxy Private
- Inherits:
-
Object
- Object
- Ridley::DataBagObject::DataBagItemProxy
- 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.
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.
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_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.
16 17 18 |
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 16 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.
17 18 19 |
# File 'lib/ridley/chef_objects/data_bag_object.rb', line 17 def item_resource @item_resource end |