Class: Groonga::Schema::TableCreationWithDifferentOptions

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table, options) ⇒ TableCreationWithDifferentOptions

Returns a new instance of TableCreationWithDifferentOptions.



72
73
74
75
76
77
# File 'lib/groonga/schema.rb', line 72

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



71
72
73
# File 'lib/groonga/schema.rb', line 71

def options
  @options
end

#tableObject (readonly)

Returns the value of attribute table.



71
72
73
# File 'lib/groonga/schema.rb', line 71

def table
  @table
end