Sha256: 0b5089ed2238bae6dc4ec15eb966bb4a602fa8a5c45053769626b21867ebb883
Contents?: true
Size: 903 Bytes
Versions: 6
Compression:
Stored size: 903 Bytes
Contents
# Configuration class that stores configuration options for the ShippingEasy API. # # ShippingEasy requires an API key and secret combination to authenticate against its API. At the very least these must be # supplied in the configuration. # # Configuration options are typically set via the ShippingEasy.config method. # @see ShippingEasy.configure # @example # ShippingEasy.configure do |config| # config.api_key = "12345" # config.api_secret = "XXXXXXXXXXXXXXXXXXXXXXXX" # end # module ShippingEasy class Configuration attr_accessor :api_key, :api_secret, :api_version, :base_url, :http_adapter # Creates a configuration object, setting the default attributes. def initialize @http_adapter = ShippingEasy::Http::FaradayAdapter @base_url = "https://app.shippingeasy.com" end end end
Version data entries
6 entries across 6 versions & 1 rubygems