Sha256: 9494cd4e8f8e3adc31670b8f337cd56c8b0edcea37cf798ea009c434c520236a

Contents?: true

Size: 679 Bytes

Versions: 41

Compression:

Stored size: 679 Bytes

Contents

module Braintree
  class ThreeDSecureInfo # :nodoc:
    include BaseModule

    attr_reader :enrolled, :liability_shifted, :liability_shift_possible, :status
    alias_method :liability_shifted?, :liability_shifted
    alias_method :liability_shift_possible?, :liability_shift_possible

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

    def inspect
      attr_order = [:enrolled, :liability_shifted, :liability_shift_possible, :status]
      formatted_attrs = attr_order.map do |attr|
        "#{attr}: #{send(attr).inspect}"
      end
      "#<ThreeDSecureInfo #{formatted_attrs.join(", ")}>"
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
braintree-2.64.0 lib/braintree/three_d_secure_info.rb
braintree-2.63.0 lib/braintree/three_d_secure_info.rb
braintree-2.62.0 lib/braintree/three_d_secure_info.rb
braintree-2.61.1 lib/braintree/three_d_secure_info.rb
braintree-2.61.0 lib/braintree/three_d_secure_info.rb
braintree-2.60.0 lib/braintree/three_d_secure_info.rb
braintree-2.59.0 lib/braintree/three_d_secure_info.rb
braintree-2.58.0 lib/braintree/three_d_secure_info.rb
braintree-2.57.0 lib/braintree/three_d_secure_info.rb
braintree-2.56.0 lib/braintree/three_d_secure_info.rb
braintree-2.55.0 lib/braintree/three_d_secure_info.rb
braintree-2.54.0 lib/braintree/three_d_secure_info.rb
braintree-2.50.0 lib/braintree/three_d_secure_info.rb
braintree-2.49.0 lib/braintree/three_d_secure_info.rb
braintree-2.48.1 lib/braintree/three_d_secure_info.rb
braintree-2.48.0 lib/braintree/three_d_secure_info.rb
braintree-2.47.0 lib/braintree/three_d_secure_info.rb
braintree-2.46.0 lib/braintree/three_d_secure_info.rb
braintree-2.45.0 lib/braintree/three_d_secure_info.rb
braintree-2.44.0 lib/braintree/three_d_secure_info.rb