Sha256: c0fc980a13a14045ff081716e277675b568270b44de1c546891309ef403622d4

Contents?: true

Size: 1.18 KB

Versions: 14

Compression:

Stored size: 1.18 KB

Contents

module Braintree
  class SuccessfulResult
    include BaseModule

    attr_reader :address
    attr_reader :apple_pay_options
    attr_reader :credentials
    attr_reader :credit_card
    attr_reader :customer
    attr_reader :disputes
    attr_reader :document_upload
    attr_reader :evidence
    attr_reader :merchant
    attr_reader :merchant_account
    attr_reader :merchant_accounts
    attr_reader :new_transaction
    attr_reader :payment_method
    attr_reader :payment_method_nonce
    attr_reader :paypal_account
    attr_reader :settlement_batch_summary
    attr_reader :subscription
    attr_reader :supported_networks
    attr_reader :transaction
    attr_reader :us_bank_account_verification
    attr_reader :credit_card_verification

    def initialize(attributes = {}) # :nodoc:
      @attrs = attributes.keys
      attributes.each do |key, value|
        instance_variable_set("@#{key}", value)
      end
      @credit_card_verification = @verification
    end

    def inspect # :nodoc:
      inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" }
      "#<#{self.class} #{inspected_attributes.join(" ")}>"
    end

    def success?
      true
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
braintree-2.104.1 lib/braintree/successful_result.rb
braintree-2.104.0 lib/braintree/successful_result.rb
braintree-2.103.0 lib/braintree/successful_result.rb
braintree-2.102.0 lib/braintree/successful_result.rb
braintree-2.101.0 lib/braintree/successful_result.rb
braintree-2.100.0 lib/braintree/successful_result.rb
braintree-2.99.0 lib/braintree/successful_result.rb
braintree-2.98.0 lib/braintree/successful_result.rb
braintree-2.97.0 lib/braintree/successful_result.rb
braintree-2.96.0 lib/braintree/successful_result.rb
braintree-2.95.0 lib/braintree/successful_result.rb
braintree-2.94.0 lib/braintree/successful_result.rb
braintree-2.93.0 lib/braintree/successful_result.rb
braintree-2.92.0 lib/braintree/successful_result.rb