Class: Cure::Builder::CopyBuilder
- Inherits:
-
BaseBuilder
- Object
- BaseBuilder
- Cure::Builder::CopyBuilder
- Defined in:
- lib/cure/builder/base_builder.rb
Instance Method Summary collapse
Methods inherited from BaseBuilder
Methods included from Database
#database_service, #init_database
Constructor Details
This class inherits a constructor from Cure::Builder::BaseBuilder
Instance Method Details
#call ⇒ void
This method returns an undefined value.
94 95 96 97 98 99 100 101 102 103 |
# File 'lib/cure/builder/base_builder.rb', line 94 def call with_database do |db_svc| to_column = @opts.fetch(:to_column) db_svc.copy_column( @named_range.to_sym, @column.to_sym, to_column ) end end |
#to_s ⇒ String (frozen)
106 107 108 |
# File 'lib/cure/builder/base_builder.rb', line 106 def to_s "Copy Builder" end |