Sha256: fafe227bc70c27c2b480013e37eac77491626f19663753cdee35b761ffe35a7d

Contents?: true

Size: 800 Bytes

Versions: 10

Compression:

Stored size: 800 Bytes

Contents

module Braintree
  class RiskData # :nodoc:
    include BaseModule

    attr_reader :customer_device_id
    attr_reader :customer_location_zip
    attr_reader :customer_tenure
    attr_reader :decision
    attr_reader :decision_reasons
    attr_reader :device_data_captured
    attr_reader :fraud_service_provider
    attr_reader :id
    attr_reader :transaction_risk_score

    def initialize(attributes)
      set_instance_variables_from_hash attributes unless attributes.nil?
    end

    def inspect
      attr_order = [:id, :decision, :decision_reasons, :device_data_captured, :fraud_service_provider, :transaction_risk_score]
      formatted_attrs = attr_order.map do |attr|
        "#{attr}: #{send(attr).inspect}"
      end
      "#<RiskData #{formatted_attrs.join(", ")}>"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
braintree-4.7.0 lib/braintree/risk_data.rb
braintree-4.6.0 lib/braintree/risk_data.rb
braintree-4.5.0 lib/braintree/risk_data.rb
braintree-4.4.0 lib/braintree/risk_data.rb
braintree-4.3.0 lib/braintree/risk_data.rb
braintree-4.2.0 lib/braintree/risk_data.rb
braintree-4.1.0 lib/braintree/risk_data.rb
braintree-4.0.0 lib/braintree/risk_data.rb
braintree-3.4.0 lib/braintree/risk_data.rb
braintree-3.3.0 lib/braintree/risk_data.rb