From d8b57739f7fd171ba68db003dc06c979805fd1f4 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Wed, 19 Feb 2014 18:18:26 +0900 Subject: [PATCH] Fix typo --- reference/plugin/adapter/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/plugin/adapter/index.md b/reference/plugin/adapter/index.md index 06d416ce..f71f082c 100644 --- a/reference/plugin/adapter/index.md +++ b/reference/plugin/adapter/index.md @@ -158,14 +158,14 @@ module FooPlugin input_message.pattern = ["type", :equal, "my-search"] def adapt_input(input_message) - p input_message.type + p input_message.command # => "my-search" # This message will be handled by a plugin # for the custom "my-search" command. - input_message.type = "search" + input_message.command = "search" - p input_message.type + p input_message.command # => "search" # The messge type (command) is changed. # This message will be handled by the "search" plugin, @@ -215,7 +215,7 @@ module FooPlugin query_string = input_message["body"]["query"] # Construct internal search request for the "search" command. - input_message.type = "search" + input_message.command = "search" input_message.body = { "queries" => { "source" => "Store",