module TimesBooks

Constants

VERSION

Attributes

options[RW]

Public Class Methods

configuration() click to toggle source
# File lib/times_books.rb, line 24
def self.configuration
  options
end
configure(params = {}) click to toggle source
# File lib/times_books.rb, line 17
def self.configure(params = {})
  fail(ArgumentError, "Options hash required.") unless params.is_a?(Hash)

  options[:api_key]    = params[:api_key]
  options
end
new(params = {}) click to toggle source
# File lib/times_books.rb, line 13
def self.new(params = {})
   TimesBooks::Client.new(params)
end