class Traktr::Lists
Public Instance Methods
add( data )
click to toggle source
# File lib/traktr/lists.rb, line 3 def add( data ) data.merge!(@auth) parse_response self.class.post('/' + File.join('add', @client.api_key), body: data.to_json, headers: { 'Content-Type' => 'application/json'}) end
delete( slug )
click to toggle source
# File lib/traktr/lists.rb, line 8 def delete( slug ) data = @auth.merge({:slug => slug}) parse_response self.class.post('/' + File.join('delete', @client.api_key), body: data.to_json, headers: { 'Content-Type' => 'application/json'}) end
items()
click to toggle source
# File lib/traktr/lists.rb, line 18 def items @items ||= Traktr::Lists::Items.new(@client) end
update( slug, data )
click to toggle source
# File lib/traktr/lists.rb, line 13 def update( slug, data ) data.merge!(@auth.merge({:slug => slug})) parse_response self.class.post('/' + File.join('update', @client.api_key), body: data.to_json, headers: { 'Content-Type' => 'application/json'}) end