Module: FCP

Defined in:
lib/first-class-postcodes.rb,
lib/first-class-postcodes/version.rb,
lib/first-class-postcodes/api_error.rb,
lib/first-class-postcodes/api_client.rb,
lib/first-class-postcodes/api/api_api.rb,
lib/first-class-postcodes/api/data_api.rb,
lib/first-class-postcodes/models/error.rb,
lib/first-class-postcodes/models/point.rb,
lib/first-class-postcodes/configuration.rb,
lib/first-class-postcodes/models/address.rb,
lib/first-class-postcodes/models/position.rb,
lib/first-class-postcodes/models/error_raw.rb,
lib/first-class-postcodes/models/typeahead.rb,
lib/first-class-postcodes/models/error_raw_gateway.rb

Defined Under Namespace

Classes: APIApi, Address, ApiClient, ApiError, Configuration, DataApi, Error, ErrorRaw, ErrorRawGateway, Point, Position, Typeahead

Constant Summary collapse

VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

FCP.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



28
29
30
31
32
33
34
# File 'lib/first-class-postcodes.rb', line 28

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end