Class: Traktr::User::Library::Shows

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/traktr/user/library/shows.rb

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize

Constructor Details

This class inherits a constructor from Traktr::Endpoint

Instance Method Details

#all(username = @client.username, extended = :min) ⇒ Object



5
6
7
# File 'lib/traktr/user/library/shows.rb', line 5

def all(username = @client.username, extended = :min)
  parse_response self.class.get('/' + File.join('all.json', @client.api_key, username, extended.to_s))
end

#collection(username = @client.username, extended = :min) ⇒ Object



9
10
11
# File 'lib/traktr/user/library/shows.rb', line 9

def collection(username = @client.username, extended = :min)
  parse_response self.class.get('/' + File.join('collection.json', @client.api_key, username, extended.to_s))
end

#watched(username = @client.username, extended = :min) ⇒ Object



13
14
15
# File 'lib/traktr/user/library/shows.rb', line 13

def watched(username = @client.username, extended = :min)
  parse_response self.class.get('/' + File.join('watched.json', @client.api_key, username, extended.to_s))
end