Sha256: 6e3d2f99b1b240b88b6d48babedd7c4f7138552889adbdcaff657735d5391fe3
Contents?: true
Size: 527 Bytes
Versions: 5
Compression:
Stored size: 527 Bytes
Contents
module Braintree class FacilitatedDetails # :nodoc: include BaseModule attr_reader :merchant_id, :merchant_name, :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
5 entries across 5 versions & 1 rubygems