Class: TheOneApi::Client

Inherits:
Object
  • Object
show all
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

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

#movieObject



20
21
22
# File 'lib/the_one_api/client.rb', line 20

def movie
  @movie ||= ResourceWrapper.new(Movie, @api_key)
end