Class: HistoricBankRates::BankScrapers::RateScraper

Inherits:
Object
  • Object
show all
Defined in:
lib/historic_bank_rates/bank_scrapers/rate_scraper.rb

Constant Summary collapse

TRANSLATE =
{}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRateScraper

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

Parameters:

  • value

    the value to set the attribute form_url to.



11
12
13
# File 'lib/historic_bank_rates/bank_scrapers/rate_scraper.rb', line 11

def form_url=(value)
  @form_url = value
end

#start_dateObject (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_currencyObject

Raises:

  • (NotImplementedError)


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