Sha256: f6f6d2bb5629e4a97c14622d521535042ed128c942fb88a70ecb4e8c5a6906ad

Contents?: true

Size: 318 Bytes

Versions: 9

Compression:

Stored size: 318 Bytes

Contents

module Affirm
  class FailureResult
    extend Forwardable
    def_delegators :response, :status, :success?

    attr_reader :error

    attr_reader :response
    private :response

    def initialize(response)
      @response = response
      @error    = Affirm::Responses::Error.new(response.body)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
affirm-ruby-1.2.0 lib/affirm/failure_result.rb
affirm-ruby-1.1.3 lib/affirm/failure_result.rb
affirm-ruby-1.1.2 lib/affirm/failure_result.rb
affirm-ruby-1.1.1 lib/affirm/failure_result.rb
affirm-ruby-1.1.0 lib/affirm/failure_result.rb
affirm-ruby-1.0.2 lib/affirm/failure_result.rb
affirm-ruby-1.0.1 lib/affirm/failure_result.rb
affirm-ruby-1.0.0 lib/affirm/failure_result.rb
affirm-ruby-0.0.1 lib/affirm/failure_result.rb