Sha256: 163fb87f549e93a205b3f39961f891f2a8fd0f854ac3acf654fea69ca0407838

Contents?: true

Size: 574 Bytes

Versions: 10

Compression:

Stored size: 574 Bytes

Contents

module Braintree
  class RiskData # :nodoc:
    include BaseModule

    attr_reader :decision
    attr_reader :device_data_captured
    attr_reader :id
    attr_reader :fraud_service_provider

    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

10 entries across 10 versions & 1 rubygems

Version Path
braintree-2.102.0 lib/braintree/risk_data.rb
braintree-2.101.0 lib/braintree/risk_data.rb
braintree-2.100.0 lib/braintree/risk_data.rb
braintree-2.99.0 lib/braintree/risk_data.rb
braintree-2.98.0 lib/braintree/risk_data.rb
braintree-2.97.0 lib/braintree/risk_data.rb
braintree-2.96.0 lib/braintree/risk_data.rb
braintree-2.95.0 lib/braintree/risk_data.rb
braintree-2.94.0 lib/braintree/risk_data.rb
braintree-2.93.0 lib/braintree/risk_data.rb