Class: Sequel::Plugins::ColumnEncryption::DSL

Inherits:
ColumnDSL show all
Defined in:
lib/sequel/plugins/column_encryption.rb

Overview

The object type yielded to plugin :column_encryption blocks, used to configure encryption keys and encrypted columns.

Instance Attribute Summary collapse

Attributes inherited from ColumnDSL

#keys

Instance Method Summary collapse

Methods inherited from ColumnDSL

#key

Constructor Details

#initializeDSL

Returns a new instance of DSL.



578
579
580
581
# File 'lib/sequel/plugins/column_encryption.rb', line 578

def initialize
  super
  @columns = []
end

Instance Attribute Details

#columnsObject (readonly)

An array of arrays of data for the columns configured inside the block.



576
577
578
# File 'lib/sequel/plugins/column_encryption.rb', line 576

def columns
  @columns
end

Instance Method Details

#column(column, opts = OPTS, &block) ⇒ Object

Store the column information.



584
585
586
# File 'lib/sequel/plugins/column_encryption.rb', line 584

def column(column, opts=OPTS, &block)
  @columns << [column, opts, block].freeze
end