Class: HistoricBankRates::BankScrapers::RateScraper
- Inherits:
-
Object
- Object
- HistoricBankRates::BankScrapers::RateScraper
- Defined in:
- lib/historic_bank_rates/bank_scrapers/rate_scraper.rb
Direct Known Subclasses
Constant Summary collapse
- TRANSLATE =
{}
Instance Attribute Summary collapse
-
#form_url ⇒ Object
writeonly
Sets the attribute form_url.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
- #base_currency ⇒ Object
- #call(start_date) ⇒ Object
-
#initialize ⇒ RateScraper
constructor
A new instance of RateScraper.
Constructor Details
#initialize ⇒ RateScraper
Returns a new instance of RateScraper.
13 14 |
# File 'lib/historic_bank_rates/bank_scrapers/rate_scraper.rb', line 13 def initialize end |
Instance Attribute Details
#form_url=(value) ⇒ Object
Sets the attribute form_url
11 12 13 |
# File 'lib/historic_bank_rates/bank_scrapers/rate_scraper.rb', line 11 def form_url=(value) @form_url = value end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
10 11 12 |
# File 'lib/historic_bank_rates/bank_scrapers/rate_scraper.rb', line 10 def start_date @start_date end |
Instance Method Details
#base_currency ⇒ Object
22 23 24 25 |
# File 'lib/historic_bank_rates/bank_scrapers/rate_scraper.rb', line 22 def base_currency # Must implement raise NotImplementedError end |
#call(start_date) ⇒ Object
16 17 18 19 20 |
# File 'lib/historic_bank_rates/bank_scrapers/rate_scraper.rb', line 16 def call start_date @start_date = start_date rates end |