Class: OFX::TransactionUniqueIdentifier
- Inherits:
-
Object
- Object
- OFX::TransactionUniqueIdentifier
- Defined in:
- lib/ofx/transaction_unique_identifier.rb
Instance Method Summary collapse
-
#initialize ⇒ TransactionUniqueIdentifier
constructor
A new instance of TransactionUniqueIdentifier.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ TransactionUniqueIdentifier
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_s ⇒ Object
24 25 26 |
# File 'lib/ofx/transaction_unique_identifier.rb', line 24 def to_s @timestamp.strftime('%Y%m%d%H%M%S') end |