class Traktr::Comment
Public Instance Methods
episode( data )
click to toggle source
# File lib/traktr/comment.rb, line 3 def episode( data ) data.merge!(@auth.merge({ review: data[:comment].split(/\s+/).length > 200 })) parse_response self.class.post('/' + File.join('episode', @client.api_key), body: data.to_json, headers: { 'Content-Type' => 'application/json'}) end
movie( data )
click to toggle source
# File lib/traktr/comment.rb, line 8 def movie( data ) data.merge!(@auth.merge({ review: data[:comment].split(/\s+/).length > 200 })) parse_response self.class.post('/' + File.join('movie', @client.api_key), body: data.to_json, headers: { 'Content-Type' => 'application/json'}) end
show( data )
click to toggle source
# File lib/traktr/comment.rb, line 13 def show( data ) data.merge!(@auth.merge({ review: data[:comment].split(/\s+/).length > 200 })) parse_response self.class.post('/' + File.join('show', @client.api_key), body: data.to_json, headers: { 'Content-Type' => 'application/json'}) end