Sha256: 98beabc83c384bfa33d936082604044b3bd61689b8d795ac6178773c03f4612a

Contents?: true

Size: 840 Bytes

Versions: 6

Compression:

Stored size: 840 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',            },
    :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}
  }

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
nov-smartfm-0.4.1 lib/smartfm/rest_clients/item.rb
nov-smartfm-1.0.0 lib/smartfm/rest_clients/item.rb
nov-smartfm-1.0.2 lib/smartfm/rest_clients/item.rb
smartfm-1.0.1 lib/smartfm/rest_clients/item.rb
smartfm-1.0.0 lib/smartfm/rest_clients/item.rb
smartfm-1.0.2 lib/smartfm/rest_clients/item.rb