module Firstclasspostcodes

Constants

VERSION

Public Class Methods

configure() { |default| ... } click to toggle source

Customize default settings for the SDK using block.

Firstclasspostcodes.configure do |config|
  config.api_key = "xxx"
end

If no block given, return the default Configuration object.

# File lib/firstclasspostcodes.rb, line 16
def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end