Sha256: c6e836129897f7faceb4a00c6d8ed3c36d06bccd08442e0032a8aabc0e13977f

Contents?: true

Size: 509 Bytes

Versions: 12

Compression:

Stored size: 509 Bytes

Contents

module Braintree
  class RiskData # :nodoc:
    include BaseModule

    attr_reader :decision
    attr_reader :device_data_captured
    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]
      formatted_attrs = attr_order.map do |attr|
        "#{attr}: #{send(attr).inspect}"
      end
      "#<RiskData #{formatted_attrs.join(", ")}>"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
braintree-2.92.0 lib/braintree/risk_data.rb
braintree-2.91.0 lib/braintree/risk_data.rb
braintree-2.90.0 lib/braintree/risk_data.rb
braintree-2.89.0 lib/braintree/risk_data.rb
braintree-2.88.0 lib/braintree/risk_data.rb
braintree-2.87.0 lib/braintree/risk_data.rb
braintree-2.86.0 lib/braintree/risk_data.rb
braintree-2.85.0 lib/braintree/risk_data.rb
braintree-2.84.0 lib/braintree/risk_data.rb
braintree-2.83.0 lib/braintree/risk_data.rb
braintree-2.82.0 lib/braintree/risk_data.rb
braintree-2.81.0 lib/braintree/risk_data.rb