Module: RakutenWebService

Defined in:
lib/rakuten_web_service.rb,
lib/rakuten_web_service/genre.rb,
lib/rakuten_web_service/client.rb,
lib/rakuten_web_service/version.rb,
lib/rakuten_web_service/books/cd.rb,
lib/rakuten_web_service/resource.rb,
lib/rakuten_web_service/books/dvd.rb,
lib/rakuten_web_service/books/book.rb,
lib/rakuten_web_service/books/game.rb,
lib/rakuten_web_service/kobo/ebook.rb,
lib/rakuten_web_service/kobo/genre.rb,
lib/rakuten_web_service/books/genre.rb,
lib/rakuten_web_service/books/total.rb,
lib/rakuten_web_service/ichiba/item.rb,
lib/rakuten_web_service/ichiba/shop.rb,
lib/rakuten_web_service/ichiba/genre.rb,
lib/rakuten_web_service/configuration.rb,
lib/rakuten_web_service/search_result.rb,
lib/rakuten_web_service/books/magazine.rb,
lib/rakuten_web_service/books/resource.rb,
lib/rakuten_web_service/books/software.rb,
lib/rakuten_web_service/ichiba/product.rb,
lib/rakuten_web_service/ichiba/ranking.rb,
lib/rakuten_web_service/books/foreign_book.rb

Defined Under Namespace

Modules: Books, Ichiba, Kobo Classes: BaseGenre, Client, Configuration, NotFound, Resource, SearchResult, ServiceUnavailable, SystemError, TooManyRequests, WrongParameter

Constant Summary collapse

VERSION =
"0.6.0".freeze

Class Method Summary collapse

Class Method Details

.configuration(&block) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/rakuten_web_service/configuration.rb', line 14

def configuration(&block)
  @configuration ||= Configuration.new
  if block
    if block.arity != 1
      raise ArgumentError, 'Block is required to have one argument' 
    end
    block.call(@configuration)
  end
  return @configuration
end