class Groonga::Client::Response::Schema::Column
Public Class Methods
new(schema, raw_column)
click to toggle source
Calls superclass method
# File lib/groonga/client/response/schema.rb, line 214 def initialize(schema, raw_column) @schema = schema super() raw_column.each do |key, value| self[key] = value end end
Public Instance Methods
[]=(key, value)
click to toggle source
Calls superclass method
# File lib/groonga/client/response/schema.rb, line 222 def []=(key, value) case key.to_sym when :indexes super(key, coerce_indexes(value)) when :value_type value = ValueType.new(value) unless value.nil? super(key, value) when :command super(key, Command.new(value)) else super end end
have_full_text_search_index?()
click to toggle source
# File lib/groonga/client/response/schema.rb, line 236 def have_full_text_search_index? indexes.any? do |index| index.full_text_searchable? end end
Private Instance Methods
coerce_indexes(raw_indexes)
click to toggle source
# File lib/groonga/client/response/schema.rb, line 243 def coerce_indexes(raw_indexes) raw_indexes.collect do |raw_index| Index.new(@schema, raw_index) end end