Class: Sequel::Plugins::ColumnEncryption::DSL
- 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
-
#columns ⇒ Object
readonly
An array of arrays of data for the columns configured inside the block.
Attributes inherited from ColumnDSL
Instance Method Summary collapse
-
#column(column, opts = OPTS, &block) ⇒ Object
Store the column information.
-
#initialize ⇒ DSL
constructor
A new instance of DSL.
Methods inherited from ColumnDSL
Constructor Details
permalink #initialize ⇒ DSL
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
Instance Method Details
permalink #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 |