Module: RakutenWebService
- Defined in:
- lib/rakuten_web_service.rb,
lib/rakuten_web_service/error.rb,
lib/rakuten_web_service/genre.rb,
lib/rakuten_web_service/client.rb,
lib/rakuten_web_service/recipe.rb,
lib/rakuten_web_service/version.rb,
lib/rakuten_web_service/books/cd.rb,
lib/rakuten_web_service/resource.rb,
lib/rakuten_web_service/response.rb,
lib/rakuten_web_service/all_proxy.rb,
lib/rakuten_web_service/books/dvd.rb,
lib/rakuten_web_service/gora/plan.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/gora/course.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/recipe/category.rb,
lib/rakuten_web_service/books/foreign_book.rb,
lib/rakuten_web_service/gora/course_detail.rb
Defined Under Namespace
Modules: Books, Gora, Ichiba, Kobo
Classes: AllProxy, BaseGenre, Client, Configuration, Error, NotFound, Recipe, Resource, Response, SearchResult, ServiceUnavailable, SystemError, TooManyRequests, WrongParameter
Constant Summary
collapse
- VERSION =
"1.1.0".freeze
Class Method Summary
collapse
Class Method Details
.configuration(&block) ⇒ Object
44
45
46
47
|
# File 'lib/rakuten_web_service/configuration.rb', line 44
def configuration(&block)
$stderr.puts "Warning: RakutenWebService.configuration is deprecated. Use RakutenWebService.configure." if block_given?
self.configure(&block)
end
|
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/rakuten_web_service/configuration.rb', line 33
def configure(&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
|