Module: Easyship

Defined in:
lib/easyship.rb,
lib/easyship/error.rb,
lib/easyship/client.rb,
lib/easyship/version.rb,
lib/easyship/configuration.rb,
lib/easyship/pagination/cursor.rb,
lib/easyship/errors/client_error.rb,
lib/easyship/errors/server_error.rb,
lib/easyship/errors/easyship_error.rb,
lib/easyship/errors/rate_limit_error.rb,
lib/easyship/errors/bad_request_error.rb,
lib/easyship/errors/invalid_token_error.rb,
lib/easyship/errors/payment_required_error.rb,
lib/easyship/handlers/response_body_handler.rb,
lib/easyship/errors/resource_not_found_error.rb,
lib/easyship/errors/unprocessable_content_error.rb,
lib/easyship/middleware/error_handler_middleware.rb

Overview

Provides configuration options for the Easyship gem.

Defined Under Namespace

Modules: Errors, Handlers, Middleware, Pagination Classes: Client, Configuration, Error

Constant Summary collapse

VERSION =
'0.1.4'

Class Method Summary collapse

Class Method Details

.configurationObject



9
10
11
# File 'lib/easyship.rb', line 9

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



13
14
15
# File 'lib/easyship.rb', line 13

def self.configure
  yield(configuration)
end