Sha256: 2ed39645e3296473b50fd43c96ea39ea90fe79fab6e8df6282366ae4b572b045

Contents?: true

Size: 642 Bytes

Versions: 4

Compression:

Stored size: 642 Bytes

Contents

class Smartfm::RestClient::Item < Smartfm::RestClient::Base

  ACTIONS = {
    :recent    => { :path => '/items'                      },
    :find      => { :path => '/items/__id__'               },
    :matching  => { :path => '/items/matching/__keyword__' },
    :extract   => { :path => '/items/extract',             },
    :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 }
  }

end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
nov-smartfm-0.4.0 lib/smartfm/rest_client/item.rb
smartfm-0.3.0 lib/smartfm/rest_client/item.rb
smartfm-0.4.0 lib/smartfm/rest_client/item.rb
smartfm-0.3.1 lib/smartfm/rest_client/item.rb