Sha256: 381e2492344b9f81fcfe394fe6d29a14c86870c92f742ec8d868714de6d97654

Contents?: true

Size: 547 Bytes

Versions: 8

Compression:

Stored size: 547 Bytes

Contents

module Braintree
  class FacilitatedDetails
    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

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/facilitated_details.rb
braintree-4.22.0 lib/braintree/facilitated_details.rb
braintree-4.21.0 lib/braintree/facilitated_details.rb
braintree-4.20.0 lib/braintree/facilitated_details.rb
braintree-4.19.0 lib/braintree/facilitated_details.rb
braintree-4.18.0 lib/braintree/facilitated_details.rb
braintree-4.17.0 lib/braintree/facilitated_details.rb
braintree-4.16.0 lib/braintree/facilitated_details.rb