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