Class: Groonga::Schema::ColumnCreationWithDifferentOptions

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

Overview

すでに存在するカラムと違うオプションでテーブルを作ろ うとしたときに発生する。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column, options) ⇒ ColumnCreationWithDifferentOptions

Returns a new instance of ColumnCreationWithDifferentOptions.



84
85
86
87
88
89
# File 'lib/groonga/schema.rb', line 84

def initialize(column, options)
  @column = column
  @options = options
  super("creating column with different option: " +
        "#{@column.inspect}: #{@options.inspect}")
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



83
84
85
# File 'lib/groonga/schema.rb', line 83

def column
  @column
end

#optionsObject (readonly)

Returns the value of attribute options.



83
84
85
# File 'lib/groonga/schema.rb', line 83

def options
  @options
end