Module: CurrencySpy
- Defined in:
- lib/currency_spy.rb,
lib/currency_spy/nbp.rb,
lib/currency_spy/scraper.rb,
lib/currency_spy/version.rb,
lib/currency_spy/dnb_nord.rb,
lib/currency_spy/walutomat.rb
Overview
This gem is a set of scrapers to fetch currencies from various institutions’ websites. It’s primary use is to monitor the changes of currency rates across different institutions to calculate spreads (difference between the buying rate and the selling rate. It fetches the rates in PLN (Polish Zloty) however if there’s a demand I could extend the gem to be more flexible.
- Author
-
Łukasz Badura ([email protected])
- Copyright
-
Copyright © 2011 Łukasz Badura
- License
-
MIT license.
Defined Under Namespace
Classes: DnbNord, Nbp, Scraper, Walutomat
Constant Summary collapse
- DATE_FORMAT =
Default date format used for date presentation across the code
"%d-%m-%Y"
- VERSION =
Stores the version of the currency_spy gem
"0.0.4"
Class Method Summary collapse
-
.datestr(date) ⇒ Object
Returns a string representation of a given date in the default format.
Class Method Details
.datestr(date) ⇒ Object
Returns a string representation of a given date in the default format
25 26 27 |
# File 'lib/currency_spy.rb', line 25 def self.datestr(date) return date.strftime(CurrencySpy::DATE_FORMAT) end |