Class: Smartfm::RestClient::Item

Inherits:
Base
  • Object
show all
Defined in:
lib/smartfm/rest_clients/item.rb

Constant Summary collapse

ACTIONS =
{
  :recent    => {:path => '/items'                     },
  :find      => {:path => '/items/__id__'              },
  :matching  => {:path => '/items/matching/__keyword__'},
  :extract   => {:path => '/items/extract',            },
  :likes     => {:path => '/items/__id__/likes'        },
  :create    => {:path => '/items',               :http_method => :post},
  :add_image => {:path => '/items/__id__/images', :http_method => :post},
  :add_sound => {:path => '/items/__id__/sounds', :http_method => :post},
  :add_tags  => {:path => '/items/__id__/tags',   :http_method => :post},
  :like!     => {:path => '/items/__id__/likes',  :http_method => :post},
  :unlike!   => {:path => '/items/__id__/likes',  :http_method => :delete}
}

Method Summary

Methods inherited from Base

http_method, method_missing, path, valid_action?