Class: Cure::Builder::RemoveBuilder

Inherits:
BaseBuilder show all
Defined in:
lib/cure/builder/base_builder.rb

Instance Method Summary collapse

Methods inherited from BaseBuilder

#initialize, #with_database

Methods included from Database

#database_service, #init_database

Constructor Details

This class inherits a constructor from Cure::Builder::BaseBuilder

Instance Method Details

#callvoid

This method returns an undefined value.



64
65
66
67
68
# File 'lib/cure/builder/base_builder.rb', line 64

def call
  with_database do |db_svc|
    db_svc.remove_column(@named_range.to_sym, @column.to_sym)
  end
end

#to_sString (frozen)

Returns:



71
72
73
# File 'lib/cure/builder/base_builder.rb', line 71

def to_s
  "Remove Builder"
end