Class: Groonga::Schema::ColumnRemoveDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/schema.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, options = {}) ⇒ ColumnRemoveDefinition

Returns a new instance of ColumnRemoveDefinition.



781
782
783
784
785
# File 'lib/groonga/schema.rb', line 781

def initialize(name, options={})
  @name = name
  @name = @name.to_s if @name.is_a?(Symbol)
  @options = (options || {}).dup
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



778
779
780
# File 'lib/groonga/schema.rb', line 778

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



779
780
781
# File 'lib/groonga/schema.rb', line 779

def options
  @options
end

Instance Method Details

#define(table_definition, table) ⇒ Object



787
788
789
# File 'lib/groonga/schema.rb', line 787

def define(table_definition, table)
  table.column(@name).remove
end