Sha256: 83ef8792c74a5ae377e622a0d6f7903f26219d2da6416f1f6420d8ae78e906dd

Contents?: true

Size: 744 Bytes

Versions: 1

Compression:

Stored size: 744 Bytes

Contents

# frozen_string_literal: true

# Core dependencies
require 'net/https'
require 'json'
require 'time'
require 'cgi'

# Extensions
require 'ext/hash' unless defined?(Rails)

# Internal requires
require_relative 'imis/config'
require_relative 'imis/error/api'
require_relative 'imis/error/mapper'
require_relative 'imis/api'
require_relative 'imis/mapper'
require_relative 'imis/panel/vsc'

module Usps
  module Imis
    class << self
      def configuration
        @configuration ||= Config.new
      end

      def configure
        yield(configuration) if block_given?
        configuration
      end

      # def mock!(value = true)
      #   @mock = value
      # end

      # def mock
      #   @mock || false
      # end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
usps-imis-api-0.3.0 lib/usps/imis.rb