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
#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
#columns ⇒ Object (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 |