Sha256: 187c3a2d61f9a71c4d2f0d45a7e518620cf30ce9ad99a48302bfdc4524263fce

Contents?: true

Size: 557 Bytes

Versions: 46

Compression:

Stored size: 557 Bytes

Contents

module Braintree
  class FacilitatedDetails # :nodoc:
    include BaseModule

    attr_reader :merchant_id
    attr_reader :merchant_name
    attr_reader :payment_method_nonce

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

    def inspect
      attr_order = [:merchant_id, :merchant_name, :payment_method_nonce]
      formatted_attrs = attr_order.map do |attr|
        "#{attr}: #{send(attr).inspect}"
      end
      "#<FacilitatorDetails #{formatted_attrs.join(", ")}>"
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/facilitated_details.rb
braintree-4.14.0 lib/braintree/facilitated_details.rb
braintree-4.13.0 lib/braintree/facilitated_details.rb
braintree-4.12.0 lib/braintree/facilitated_details.rb
braintree-4.11.0 lib/braintree/facilitated_details.rb
braintree-4.10.0 lib/braintree/facilitated_details.rb
braintree-4.9.0 lib/braintree/facilitated_details.rb
braintree-4.8.0 lib/braintree/facilitated_details.rb
braintree-4.7.0 lib/braintree/facilitated_details.rb
braintree-4.6.0 lib/braintree/facilitated_details.rb
braintree-4.5.0 lib/braintree/facilitated_details.rb
braintree-4.4.0 lib/braintree/facilitated_details.rb
braintree-4.3.0 lib/braintree/facilitated_details.rb
braintree-4.2.0 lib/braintree/facilitated_details.rb
braintree-4.1.0 lib/braintree/facilitated_details.rb
braintree-4.0.0 lib/braintree/facilitated_details.rb
braintree-3.4.0 lib/braintree/facilitated_details.rb
braintree-3.3.0 lib/braintree/facilitated_details.rb
braintree-3.2.0 lib/braintree/facilitated_details.rb
braintree-3.1.0 lib/braintree/facilitated_details.rb