Module: Dmm

Defined in:
lib/dmm.rb,
lib/dmm/base.rb,
lib/dmm/item.rb,
lib/dmm/error.rb,
lib/dmm/price.rb,
lib/dmm/client.rb,
lib/dmm/result.rb,
lib/dmm/version.rb,
lib/dmm/iteminfo.rb,
lib/dmm/response.rb,
lib/dmm/api/items.rb

Defined Under Namespace

Modules: API Classes: BadRequest, Base, Client, Error, Forbidden, InternalServerError, Item, Iteminfo, NotAcceptable, NotFound, Price, Response, Result, ServiceUnavailable, Unauthorized, UnprocessableEntity

Constant Summary collapse

VERSION =
"0.0.4"

Class Method Summary collapse

Class Method Details

.const_defined?(name) ⇒ Boolean

Returns:

  • (Boolean)


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

def const_defined?(name)
  Dmm::Client.const_defined?(name.to_sym) || super
end

.const_missing(name) ⇒ Object



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

def const_missing(name)
  return super unless Dmm::Client.const_defined?(name.to_sym)
  Dmm::Client.const_get(name.to_sym)
end

.new(options = {}) ⇒ Object



6
7
8
# File 'lib/dmm.rb', line 6

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