Sha256: fc002848f0ee29904b5c35c1c7ce492ef9f7a02a1cae2cf16de9ddbd9af505c9
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
require 'international_postcode_api/version' require 'international_postcode_api/client' require 'securerandom' module InternationalPostcodeApi class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield(configuration) end class Configuration attr_accessor :api_key, :secret_key, :base_uri, :dynamic_endpoints attr_reader :session_token def initialize @base_uri = 'https://api.postcode.eu/international/v1/' @session_token = SecureRandom.hex(8) @dynamic_endpoints = true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
international_postcode_api-0.3.0 | lib/international_postcode_api.rb |