Class: Groonga::Client::Response::Schema::Table
- Inherits:
-
Hash
- Object
- Hash
- Groonga::Client::Response::Schema::Table
- Includes:
- Hashie::Extensions::MethodAccess
- Defined in:
- lib/groonga/client/response/schema.rb
Overview
Instance Method Summary collapse
- #[]=(key, value) ⇒ Object
-
#initialize(schema) ⇒ Table
constructor
A new instance of Table.
Constructor Details
#initialize(schema) ⇒ Table
Returns a new instance of Table.
195 196 197 198 |
# File 'lib/groonga/client/response/schema.rb', line 195 def initialize(schema) @schema = schema super() end |
Instance Method Details
#[]=(key, value) ⇒ Object
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/groonga/client/response/schema.rb', line 200 def []=(key, value) case key.to_sym when :key_type super(key, coerce_key_type(value)) when :tokenizer super(key, coerce_tokenizer(value)) when :normalizer super(key, coerce_normalizer(value)) when :columns super(key, coerce_columns(value)) when :indexes super(key, coerce_indexes(value)) else super end end |