Sha256: 265f3f1d651fc53c1a78b065b8c021e0878d517b87d2bc213ac4e520a56916ec

Contents?: true

Size: 619 Bytes

Versions: 7

Compression:

Stored size: 619 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
  
    class Error < StandardError #:nodoc:
    end
  
    class Response
      attr_reader :params
      attr_reader :message
      attr_reader :test
      attr_reader :authorization
    
      def success?
        @success
      end

      def test?
        @test
      end
        
      def initialize(success, message, params = {}, options = {})
        @success, @message, @params = success, message, params.stringify_keys
        @test = options[:test] || false        
        @authorization = options[:authorization]        
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activemerchant-1.1.0 lib/active_merchant/billing/response.rb
activemerchant-1.0.0 lib/active_merchant/billing/response.rb
activemerchant-1.0.3 lib/active_merchant/billing/response.rb
activemerchant-1.2.0 lib/active_merchant/billing/response.rb
activemerchant-1.0.1 lib/active_merchant/billing/response.rb
activemerchant-1.0.2 lib/active_merchant/billing/response.rb
activemerchant-1.2.1 lib/active_merchant/billing/response.rb