Module: DMM

Extended by:
Configuration
Defined in:
lib/ruby-dmm.rb,
lib/ruby-dmm/error.rb,
lib/ruby-dmm/client.rb,
lib/ruby-dmm/version.rb,
lib/ruby-dmm/response.rb,
lib/ruby-dmm/configuration.rb,
lib/ruby-dmm/response/item.rb,
lib/ruby-dmm/client/item_list.rb,
lib/ruby-dmm/response/item_info.rb,
lib/faraday_middleware/response/dmm_rashify.rb

Defined Under Namespace

Modules: Configuration Classes: BadGateway, BadRequest, Client, Error, Forbidden, InternalServerError, NotAcceptable, NotFound, NotImplemented, Rash, Response, ServiceUnavailable, Unauthorized, UnprocessableEntity

Constant Summary collapse

DEFAULT_API_VERSION =
'2.00'.freeze
SITE_DMM_CO_JP =
'DMM.co.jp'.freeze
SITE_DMM_COM =
'DMM.com'.freeze
DEFAULT_SITE =
SITE_DMM_CO_JP
VERSION =
"0.0.2"
OPERATION_ITEM_LIST =
'ItemList'

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_ENDPOINT, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

api_endpoint=, configure, extended, options, reset

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to DMM::Client.new



15
16
17
18
# File 'lib/ruby-dmm.rb', line 15

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ Object



10
11
12
# File 'lib/ruby-dmm.rb', line 10

def new(options={})
  DMM::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/ruby-dmm.rb', line 20

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end