Sha256: 7877aaacb4fe374a37248e6d08ec3f64edf21e8e80c0347de8889f9c8fe7e7a4

Contents?: true

Size: 479 Bytes

Versions: 3

Compression:

Stored size: 479 Bytes

Contents

module Braintree
  class RiskData # :nodoc:
    include BaseModule

    attr_reader :id, :decision, :device_data_captured

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
braintree-2.80.1 lib/braintree/risk_data.rb
braintree-2.80.0 lib/braintree/risk_data.rb
braintree-2.79.0 lib/braintree/risk_data.rb