Class: Groonga::Schema::ColumnRemoveDefinition
- Inherits:
-
Object
- Object
- Groonga::Schema::ColumnRemoveDefinition
- Defined in:
- lib/groonga/schema.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #define(table_definition, table) ⇒ Object
-
#initialize(name, options = {}) ⇒ ColumnRemoveDefinition
constructor
A new instance of ColumnRemoveDefinition.
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, ={}) @name = name @name = @name.to_s if @name.is_a?(Symbol) @options = ( || {}).dup end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
778 779 780 |
# File 'lib/groonga/schema.rb', line 778 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
779 780 781 |
# File 'lib/groonga/schema.rb', line 779 def @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 |