Class: Iknow::RestClient::Sentence

Inherits:
Base
  • Object
show all
Defined in:
lib/iknow/rest_client/sentence.rb

Constant Summary collapse

ACTIONS =
{
  :recent    => { :path => '/sentences'                                      },
  :find      => { :path => '/sentences/__id__'                               },
  :matching  => { :path => '/sentences/matching/__keyword__'                 },
  :create    => { :path => '/sentences',               :http_method => :post },
  :add_image => { :path => '/sentences/__id__/images', :http_method => :post },
  :add_sound => { :path => '/sentences/__id__/sounds', :http_method => :post }
}

Method Summary

Methods inherited from Base

http_method, method_missing, path, valid_action?