Module: Vertpig::Helpers

Included in:
Deposit, Market, Order, Summary, Withdrawal
Defined in:
lib/vertpig/helpers.rb

Instance Method Summary collapse

Instance Method Details

#extract_timestamp(value) ⇒ Object



5
6
7
8
# File 'lib/vertpig/helpers.rb', line 5

def extract_timestamp(value)
  return if value.nil? or value.strip.empty?
  DateTime.parse value
end