class Traktr::Client
Attributes
api_key[R]
password[R]
username[R]
Public Class Methods
new(api_key, username = nil, password = nil, sha1 = false)
click to toggle source
# File lib/traktr/client.rb, line 40 def initialize(api_key, username = nil, password = nil, sha1 = false) @api_key = api_key || "" @username = username || "" @password = password ? (sha1 ? password : Digest::SHA1.hexdigest(password)) : "" end
Public Instance Methods
account()
click to toggle source
# File lib/traktr/client.rb, line 46 def account @account ||= Traktr::Account.new(self) end
activity()
click to toggle source
# File lib/traktr/client.rb, line 50 def activity @activity ||= Traktr::Activity.new(self) end
calendar()
click to toggle source
# File lib/traktr/client.rb, line 54 def calendar @calendar ||= Traktr::Calendar.new(self) end
comment()
click to toggle source
# File lib/traktr/client.rb, line 58 def comment @comment ||= Traktr::Comment.new(self) end
genres()
click to toggle source
# File lib/traktr/client.rb, line 62 def genres @genres ||= Traktr::Genres.new(self) end
lists()
click to toggle source
# File lib/traktr/client.rb, line 66 def lists @lists ||= Traktr::Lists.new(self) end
movie()
click to toggle source
# File lib/traktr/client.rb, line 74 def movie @movie ||= Traktr::Movie.new(self) end
movies()
click to toggle source
# File lib/traktr/client.rb, line 78 def movies @movies ||= Traktr::Movies.new(self) end
network()
click to toggle source
# File lib/traktr/client.rb, line 70 def network @network ||= Traktr::Network.new(self) end
rate()
click to toggle source
# File lib/traktr/client.rb, line 82 def rate @rate ||= Traktr::Rate.new(self) end
recommendations()
click to toggle source
# File lib/traktr/client.rb, line 86 def recommendations @recommendations ||= Traktr::Recommendations.new(self) end
search()
click to toggle source
# File lib/traktr/client.rb, line 90 def search @search ||= Traktr::Search.new(self) end
server()
click to toggle source
# File lib/traktr/client.rb, line 94 def server @server ||= Traktr::Server.new(self) end
show()
click to toggle source
# File lib/traktr/client.rb, line 98 def show @show ||= Traktr::Show.new(self) end
shows()
click to toggle source
# File lib/traktr/client.rb, line 102 def shows @shows ||= Traktr::Shows.new(self) end
user()
click to toggle source
# File lib/traktr/client.rb, line 106 def user @user ||= Traktr::User.new(self) end
version()
click to toggle source
# File lib/traktr/client.rb, line 110 def version @version ||= Traktr::Version.new(self) end