Class: Traktr::Endpoint
- Inherits:
-
Object
- Object
- Traktr::Endpoint
- Includes:
- HTTParty
- Defined in:
- lib/traktr/endpoint.rb
Direct Known Subclasses
Account, Activity, Activity::User, Calendar, Comment, Genres, Lists, Lists::Items, Movie, Movies, Network, Rate, Recommendations, Search, Server, Show, Show::Episode, Show::Season, Shows, User, User::Calendar, User::Library, User::Library::Movies, User::Library::Shows, User::Network, User::Progress, User::Ratings, User::Watchlist
Instance Method Summary collapse
-
#initialize(client) ⇒ Endpoint
constructor
A new instance of Endpoint.
Constructor Details
#initialize(client) ⇒ Endpoint
Returns a new instance of Endpoint.
5 6 7 8 9 |
# File 'lib/traktr/endpoint.rb', line 5 def initialize(client) self.class.base_uri File.join(Traktr.base_uri, self.class.to_s.split("::")[1..-1].join("/").downcase) @client = client @auth = { username: @client.username, password: @client.password } end |