Class: Ridley::DBIContext Private

Inherits:
Object
  • Object
show all
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.

Author:

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



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

#connectionObject (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_bagObject (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