Sha256: 548d57d057726631ab57452affb14b5abab54dddbdd2741f1e7838e520ccaeda

Contents?: true

Size: 433 Bytes

Versions: 44

Compression:

Stored size: 433 Bytes

Contents

module Braintree
  class RiskData # :nodoc:
    include BaseModule

    attr_reader :id, :decision

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

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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
braintree-2.78.0 lib/braintree/risk_data.rb
braintree-2.77.0 lib/braintree/risk_data.rb
braintree-2.76.0 lib/braintree/risk_data.rb
braintree-2.75.0 lib/braintree/risk_data.rb
braintree-2.74.0 lib/braintree/risk_data.rb
braintree-2.73.0 lib/braintree/risk_data.rb
braintree-2.72.0 lib/braintree/risk_data.rb
braintree-2.71.0 lib/braintree/risk_data.rb
braintree-2.70.0 lib/braintree/risk_data.rb
braintree-2.69.1 lib/braintree/risk_data.rb
braintree-2.69.0 lib/braintree/risk_data.rb
braintree-2.68.2 lib/braintree/risk_data.rb
braintree-2.68.1 lib/braintree/risk_data.rb
braintree-2.68.0 lib/braintree/risk_data.rb
braintree-2.67.0 lib/braintree/risk_data.rb
braintree-2.66.0 lib/braintree/risk_data.rb
braintree-2.65.0 lib/braintree/risk_data.rb
braintree-2.64.0 lib/braintree/risk_data.rb
braintree-2.63.0 lib/braintree/risk_data.rb
braintree-2.62.0 lib/braintree/risk_data.rb