Sha256: e366f2b90875f933ae8a770fb1dd67500544c77d1025638a4028a43554e1bf7b
Contents?: true
Size: 706 Bytes
Versions: 5
Compression:
Stored size: 706 Bytes
Contents
module Braintree class Transaction class CustomerDetails include BaseModule attr_reader :company attr_reader :email attr_reader :fax attr_reader :first_name attr_reader :id attr_reader :last_name attr_reader :phone attr_reader :website def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end def inspect attr_order = [:id, :first_name, :last_name, :email, :company, :website, :phone, :fax] formatted_attrs = attr_order.map do |attr| "#{attr}: #{send(attr).inspect}" end "#<#{formatted_attrs.join(", ")}>" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems