Class: Simple::SQL::Duplicator
- Inherits:
-
Object
- Object
- Simple::SQL::Duplicator
- Defined in:
- lib/simple/sql/duplicate.rb
Instance Attribute Summary collapse
-
#custom_overrides ⇒ Object
readonly
Returns the value of attribute custom_overrides.
-
#table_name ⇒ Object
readonly
Returns the value of attribute table_name.
Instance Method Summary collapse
- #call(ids) ⇒ Object
-
#initialize(table_name, overrides) ⇒ Duplicator
constructor
A new instance of Duplicator.
Constructor Details
#initialize(table_name, overrides) ⇒ Duplicator
Returns a new instance of Duplicator.
34 35 36 37 |
# File 'lib/simple/sql/duplicate.rb', line 34 def initialize(table_name, overrides) @table_name = table_name @custom_overrides = validated_overrides(overrides) end |
Instance Attribute Details
#custom_overrides ⇒ Object (readonly)
Returns the value of attribute custom_overrides.
32 33 34 |
# File 'lib/simple/sql/duplicate.rb', line 32 def custom_overrides @custom_overrides end |
#table_name ⇒ Object (readonly)
Returns the value of attribute table_name.
32 33 34 |
# File 'lib/simple/sql/duplicate.rb', line 32 def table_name @table_name end |