[Groonga-commit] droonga/fluent-plugin-droonga at 4db8316 [master] Make output messages' "errors" and "status code" changable

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 27 17:38:48 JST 2014


YUKI Hiroshi	2014-01-27 17:38:48 +0900 (Mon, 27 Jan 2014)

  New Revision: 4db8316114c0c6b557eda99602fe96929af25f85
  https://github.com/droonga/fluent-plugin-droonga/commit/4db8316114c0c6b557eda99602fe96929af25f85

  Message:
    Make output messages' "errors" and "status code" changable

  Modified files:
    lib/droonga/output_message.rb

  Modified: lib/droonga/output_message.rb (+16 -0)
===================================================================
--- lib/droonga/output_message.rb    2014-01-27 17:38:31 +0900 (7e720a2)
+++ lib/droonga/output_message.rb    2014-01-27 17:38:48 +0900 (ef2538b)
@@ -26,6 +26,22 @@ module Droonga
       @raw_message
     end
 
+    def status_code
+      @raw_message["statusCode"]
+    end
+
+    def status_code=(status_code)
+      @raw_message["statusCode"] = status_code
+    end
+
+    def errors
+      @raw_message["errors"]
+    end
+
+    def errors=(errors)
+      @raw_message["errors"] = errors
+    end
+
     def body
       @raw_message["body"]
     end
-------------- next part --------------
HTML����������������������������...
下載 



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