Sha256: 749d94508446906dba3933ebb380648992981d89a0f267d2cc3cfff1141c6d21

Contents?: true

Size: 343 Bytes

Versions: 5

Compression:

Stored size: 343 Bytes

Contents

require "cgi_party/response"

module CGIParty
  class CollectResponse < Response
    def authentication_finished?
      !authentication_ongoing?
    end

    def authentication_ongoing?
      ongoing_statuses.include? progress_status
    end

    private

    def ongoing_statuses
      %w(OUTSTANDING_TRANSACTION USER_SIGN)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cgi_party-2.0.1 lib/cgi_party/collect_response.rb
cgi_party-2.0.0 lib/cgi_party/collect_response.rb
cgi_party-1.0.0 lib/cgi_party/collect_response.rb
cgi_party-0.1.1 lib/cgi_party/collect_response.rb
cgi_party-0.1.0 lib/cgi_party/collect_response.rb