Sha256: 5e7f0dac6d6214c5ed74ea6e5746ac995d7db43f4af89d0611d182d31e930cc3

Contents?: true

Size: 316 Bytes

Versions: 1

Compression:

Stored size: 316 Bytes

Contents

module ShippingScale
  class Configuration < Struct.new(:user_id, :timeout, :testing, :zip_origin, :zip_destination)
    def initialize
      self.timeout = 5
      self.testing = false
      self.user_id = (ENV.fetch("USPS_USER_ID")) ? ENV.fetch("USPS_USER_ID") : nil
    end

    alias :testing? :testing
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shipping-scale-0.1.0 lib/shipping_scale/configuration.rb