Module: CoopScraper::Base
- Included in:
- CreditCard, CurrentAccount
- Defined in:
- lib/coop_scraper/base.rb
Instance Method Summary collapse
Instance Method Details
#coop_date_to_time(coop_date) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/coop_scraper/base.rb', line 3 def coop_date_to_time(coop_date) date_match = coop_date.match(/([0-9]{2})\/([0-9]{2})\/([0-9]{4})/) return nil if date_match.nil? day, month, year = date_match.captures Time.utc(year, month, day) end |