Class: TheOneApi::Client
- Inherits:
-
Object
- Object
- TheOneApi::Client
- Defined in:
- lib/the_one_api/client.rb
Overview
A client for The One Api
Constant Summary collapse
- BASE_URL =
"https://the-one-api.dev/v2/"
Instance Method Summary collapse
-
#initialize(api_key) ⇒ Client
constructor
A new instance of Client.
- #movie ⇒ Object
Constructor Details
#initialize(api_key) ⇒ Client
Returns a new instance of Client.
16 17 18 |
# File 'lib/the_one_api/client.rb', line 16 def initialize(api_key) @api_key = api_key end |
Instance Method Details
#movie ⇒ Object
20 21 22 |
# File 'lib/the_one_api/client.rb', line 20 def movie @movie ||= ResourceWrapper.new(Movie, @api_key) end |