Class: DbAgile::Plugin

Inherits:
Object
  • Object
show all
Includes:
Contract::Utils::Delegate, Tools::Tuple
Defined in:
lib/dbagile/plugin.rb

Overview

Defines common contract of all plugins inside the adapter chain

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Tools::Tuple

#check_tuple_heading, #tuple_has_key?, #tuple_heading, #tuple_key, #tuple_project, #tuple_to_querystring

Constructor Details

#initialize(options = {}) ⇒ Plugin

Creates a brick instance with a given delegate



18
19
20
# File 'lib/dbagile/plugin.rb', line 18

def initialize(options = {})
  @options = default_options.merge(options)
end

Instance Attribute Details

#optionsObject (readonly)

Plugin options



10
11
12
# File 'lib/dbagile/plugin.rb', line 10

def options
  @options
end

Class Method Details

.[](*args) ⇒ Object

Returns an instance



13
14
15
# File 'lib/dbagile/plugin.rb', line 13

def self.[](*args)
  self.new(*args)
end