Class: Vinegar::Client
- Inherits:
-
Object
- Object
- Vinegar::Client
- Includes:
- Authentication, Cast, Clip, Movie, Review, Root, Similar, Connection, Request
- Defined in:
- lib/vinegar/client.rb,
lib/vinegar/client/root.rb,
lib/vinegar/client/movie.rb,
lib/vinegar/client/movie/cast.rb,
lib/vinegar/client/movie/clip.rb,
lib/vinegar/client/movie/review.rb,
lib/vinegar/client/movie/similar.rb
Defined Under Namespace
Modules: Cast, Clip, Movie, Review, Root, Similar
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Clip
Methods included from Similar
Methods included from Cast
Methods included from Review
#all_movie_reviews, #dvd_movie_reviews, #top_critic_movie_reviews
Methods included from Movie
Methods included from Root
Methods included from Request
Methods included from Connection
Methods included from Authentication
#authenticated?, #authentication, #login_token
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/vinegar/client.rb', line 17 def initialize( = {}) Vinegar.reset! = Vinegar..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end login_token([:api_key]) end |