Sha256: 99d8a9a49526e485f549f0f3b68ae730406d8f4cd7a23ffe94eb69f138ef73f0

Contents?: true

Size: 682 Bytes

Versions: 6

Compression:

Stored size: 682 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 :device_data_captured
    attr_reader :fraud_service_provider
    attr_reader :id

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
braintree-3.2.0 lib/braintree/risk_data.rb
braintree-3.1.0 lib/braintree/risk_data.rb
braintree-3.0.1 lib/braintree/risk_data.rb
braintree-2.104.1 lib/braintree/risk_data.rb
braintree-2.104.0 lib/braintree/risk_data.rb
braintree-2.103.0 lib/braintree/risk_data.rb