Sha256: 609d889bef0a1b296a3cd03f24793ac9640ea0ae9455eef16eda6f5aa3380f04
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
module Braintree class Transaction class CreditCardDetails # :nodoc: include BaseModule attr_reader :bin, :card_type, :expiration_month, :expiration_year, :issuer_location, :last_4, :token def initialize(attributes) set_instance_variables_from_hash attributes unless attributes.nil? end def expiration_date "#{expiration_month}/#{expiration_year}" end def masked_number "#{bin}******#{last_4}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
braintree-1.0.1 | lib/braintree/transaction/credit_card_details.rb |
braintree-1.0.0 | lib/braintree/transaction/credit_card_details.rb |