class Trendious::Client

Public Class Methods

new() click to toggle source
# File lib/trendious/client.rb, line 7
def initialize
end

Public Instance Methods

posts_by_name(name, page = 0) click to toggle source
# File lib/trendious/client.rb, line 22
def posts_by_name(name, page = 0)
  form_name = name.gsub!(' ', '%20')
  search({q: name, without_type: "user,tag", page: page})
end
tags() click to toggle source
# File lib/trendious/client.rb, line 18
def tags
  Trendious::Tags.new Net::HTTP.get(URI('http://api.moviepilot.com/v4/tags'))
end
tags_by_name(name, page = 0) click to toggle source
# File lib/trendious/client.rb, line 27
def tags_by_name(name, page = 0)
  search({q: name, with_type: "tag", page: page})
end