Class: Rubydmmd::Client

Inherits:
Object
  • Object
show all
Includes:
Connection, Endpoint
Defined in:
lib/rubydmmd/client.rb

Constant Summary collapse

BASE_URL =
'https://api.dmm.com'

Instance Method Summary collapse

Methods included from Endpoint::Author

#authores

Methods included from Endpoint::Series

#series

Methods included from Endpoint::Maker

#makers

Methods included from Endpoint::Genre

#genres

Methods included from Endpoint::Actress

#actresses

Methods included from Endpoint::Floor

#floors

Methods included from Endpoint::Item

#items

Methods included from Connection

#get

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



11
12
13
14
15
# File 'lib/rubydmmd/client.rb', line 11

def initialize(options = {})
  @api_id = (ENV['DMM_API_ID'] || options[:api_id])
  @affiliate_id = (ENV['DMM_AFFILIATE_ID'] || options[:affiliate_id])
  @url = BASE_URL
end