Class: Ridley::DBIContext Private
- Inherits:
-
Object
- Object
- Ridley::DBIContext
- Defined in:
- lib/ridley/resources/data_bag.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
- #connection ⇒ Object readonly private
- #data_bag ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(data_bag, connection) ⇒ DBIContext
constructor
private
A new instance of DBIContext.
- #method_missing(fun, *args, &block) ⇒ Object private
- #new(*args) ⇒ Object private
Constructor Details
#initialize(data_bag, connection) ⇒ DBIContext
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 DBIContext.
9 10 11 12 |
# File 'lib/ridley/resources/data_bag.rb', line 9 def initialize(data_bag, connection) @data_bag = data_bag @connection = connection 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.
18 19 20 |
# File 'lib/ridley/resources/data_bag.rb', line 18 def method_missing(fun, *args, &block) Ridley::DataBagItem.send(fun, connection, data_bag, *args, &block) end |
Instance Attribute Details
#connection ⇒ 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.
6 7 8 |
# File 'lib/ridley/resources/data_bag.rb', line 6 def connection @connection end |
#data_bag ⇒ 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.
5 6 7 |
# File 'lib/ridley/resources/data_bag.rb', line 5 def data_bag @data_bag end |
Instance Method Details
#new(*args) ⇒ 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.
14 15 16 |
# File 'lib/ridley/resources/data_bag.rb', line 14 def new(*args) Ridley::DataBagItem.send(:new, connection, data_bag, *args) end |