Sha256: 891af8e9f729f8f50dbd18ec94a7346711524881dc33d436c44665622beaff70
Contents?: true
Size: 359 Bytes
Versions: 1
Compression:
Stored size: 359 Bytes
Contents
# frozen_string_literal: true module FriendlyShipping # Wraps an API result from a request that failed. class ApiFailure < ApiResult # @!attribute [r] data # The API failure (typically an exception) alias_method :failure, :data # @return [#to_s] a string representation of the failure def to_s failure.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
friendly_shipping-0.9.0 | lib/friendly_shipping/api_failure.rb |