[Groonga-commit] ranguba/groonga-client at 4b9dc18 [master] schema response: make column.value_type method accessable

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Dec 19 13:52:22 JST 2016


Kouhei Sutou	2016-12-19 13:52:22 +0900 (Mon, 19 Dec 2016)

  New Revision: 4b9dc181898936dfa0bb8608fd1a7294c1e65c23
  https://github.com/ranguba/groonga-client/commit/4b9dc181898936dfa0bb8608fd1a7294c1e65c23

  Message:
    schema response: make column.value_type method accessable

  Modified files:
    lib/groonga/client/response/schema.rb

  Modified: lib/groonga/client/response/schema.rb (+8 -0)
===================================================================
--- lib/groonga/client/response/schema.rb    2016-12-13 14:28:46 +0900 (21f8062)
+++ lib/groonga/client/response/schema.rb    2016-12-19 13:52:22 +0900 (00573cb)
@@ -103,26 +103,32 @@ module Groonga
         end
 
         class Type < ::Hash
+          include Hashie::Extensions::MergeInitializer
           include Hashie::Extensions::MethodAccess
         end
 
         class Tokenizer < ::Hash
+          include Hashie::Extensions::MergeInitializer
           include Hashie::Extensions::MethodAccess
         end
 
         class Normalizer < ::Hash
+          include Hashie::Extensions::MergeInitializer
           include Hashie::Extensions::MethodAccess
         end
 
         class TokenFilter < ::Hash
+          include Hashie::Extensions::MergeInitializer
           include Hashie::Extensions::MethodAccess
         end
 
         class KeyType < ::Hash
+          include Hashie::Extensions::MergeInitializer
           include Hashie::Extensions::MethodAccess
         end
 
         class ValueType < ::Hash
+          include Hashie::Extensions::MergeInitializer
           include Hashie::Extensions::MethodAccess
         end
 
@@ -180,6 +186,8 @@ module Groonga
             case key.to_sym
             when :indexes
               super(key, coerce_indexes(value))
+            when :value_type
+              super(key, ValueType.new(value))
             else
               super
             end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index