Class: Trakt::Search

Inherits:
Object
  • Object
show all
Includes:
Connection
Defined in:
lib/trakt/search.rb

Instance Attribute Summary

Attributes included from Connection

#trakt

Instance Method Summary collapse

Methods included from Connection

#initialize, #require_settings

Instance Method Details

#episode(query) ⇒ Object



12
13
14
15
# File 'lib/trakt/search.rb', line 12

def episode(query)
  require_settings %w|apikey|
  get('/search/episodes.json/',clean_query(query))
end

#movies(query) ⇒ Object



4
5
6
7
# File 'lib/trakt/search.rb', line 4

def movies(query)
  require_settings %w|apikey|
  get('/search/movies.json/',clean_query(query))
end

#people(query) ⇒ Object



16
17
18
19
# File 'lib/trakt/search.rb', line 16

def people(query)
  require_settings %w|apikey|
  get('/search/people.json/',clean_query(query))
end

#shows(query) ⇒ Object



8
9
10
11
# File 'lib/trakt/search.rb', line 8

def shows(query)
  require_settings %w|apikey|
  get('/search/shows.json/',clean_query(query))
end

#users(query) ⇒ Object



20
21
22
23
# File 'lib/trakt/search.rb', line 20

def users(query)
  require_settings %w|apikey|
  get('/search/users.json/',clean_query(query))
end