Sha256: 015b2c52752195a928bf9cc38dfcbbb2cccbe9e780e347791c5c843d790c6018

Contents?: true

Size: 776 Bytes

Versions: 4

Compression:

Stored size: 776 Bytes

Contents

class Smartfm::RestClient::List < Smartfm::RestClient::Base
  
  ACTIONS = {
    :recent      => { :path => '/lists'                      },
    :find        => { :path => '/lists/__id__'               },
    :items       => { :path => '/lists/__id__/items'         },
    :sentences   => { :path => '/lists/__id__/sentences'     },
    :matching    => { :path => '/lists/matching/__keyword__' },
    :create      => { :path => '/lists',                          :http_method => :post   },
    :delete      => { :path => '/lists/__id__',                   :http_method => :delete },
    :add_item    => { :path => '/lists/__list_id__/items',        :http_method => :post   },
    :delete_item => { :path => '/lists/__list_id__/items/__id__', :http_method => :delete }
  }

end

Version data entries

4 entries across 4 versions & 2 rubygems

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