Class: OFX::TransactionUniqueIdentifier

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx/transaction_unique_identifier.rb

Instance Method Summary collapse

Constructor Details

#initializeTransactionUniqueIdentifier

Returns a new instance of TransactionUniqueIdentifier.



20
21
22
# File 'lib/ofx/transaction_unique_identifier.rb', line 20

def initialize
    @timestamp = DateTime.now
end

Instance Method Details

#to_sObject



24
25
26
# File 'lib/ofx/transaction_unique_identifier.rb', line 24

def to_s
    @timestamp.strftime('%Y%m%d%H%M%S')
end