Class: Smartfm::RestClient::Sentence

Inherits:
Base
  • Object
show all
Defined in:
lib/smartfm/rest_clients/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},
  :like!     => {:path => '/sentences/__id__/likes',  :http_method => :post},
  :unlike!   => {:path => '/sentences/__id__/likes',  :http_method => :delete}
}

Method Summary

Methods inherited from Base

http_method, method_missing, path, valid_action?