Class: Groonga::Schema::UnknownOptions

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

Overview

未知のオプションを指定したときに発生する。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, unknown_keys, available_keys) ⇒ UnknownOptions

Returns a new instance of UnknownOptions.



114
115
116
117
118
119
120
121
122
# File 'lib/groonga/schema.rb', line 114

def initialize(options, unknown_keys, available_keys)
  @options = options
  @unknown_keys = unknown_keys
  @available_keys = available_keys
  message = "unknown keys are specified: #{@unknown_keys.inspect}"
  message << ": available keys: #{@available_keys.inspect}"
  message << ": options: #{@options.inspect}"
  super(message)
end

Instance Attribute Details

#available_keysObject (readonly)

Returns the value of attribute available_keys.



113
114
115
# File 'lib/groonga/schema.rb', line 113

def available_keys
  @available_keys
end

#optionsObject (readonly)

Returns the value of attribute options.



113
114
115
# File 'lib/groonga/schema.rb', line 113

def options
  @options
end

#unknown_keysObject (readonly)

Returns the value of attribute unknown_keys.



113
114
115
# File 'lib/groonga/schema.rb', line 113

def unknown_keys
  @unknown_keys
end