Sha256: dec1edf558717cd26ba14e9f689ab21595d00cd4739d7914e3bb77dacee1cf7d

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

module Easyship
  VERSION: String

  def self.confugration: () -> Configuration
  def self.configure: () { (Configuration) -> void } -> void

  class Configuration
    attr_accessor api_key: String
    attr_accessor environment: String
  end

  module Errors
    class EasyshipError < StandardError
      attr_accessor message: String
      attr_accessor body_error: Hash 
    end

    class ServerError < EasyshipError
    end

    class ClientError < EasyshipError
    end

    class UnprocessableContentError < EasyshipError
    end

    class InvalidTokenError < EasyshipError
    end

    class RateLimitError < EasyshipError
    end

    class ResourceNotFoundError < EasyshipError
    end

    class PaymentRequiredError < EasyshipError
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
easyship-0.1.4 sig/easyship.rbs
easyship-0.1.3 sig/easyship.rbs
easyship-0.1.2 sig/easyship.rbs
easyship-0.1.1 sig/easyship.rbs
easyship-0.1.0 sig/easyship.rbs