Class: EGPRates::Bank

Inherits:
Object
  • Object
show all
Defined in:
lib/egp_rates/bank.rb

Overview

Class Representing the bank to get the data from

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#symObject (readonly)

Returns the value of attribute sym.



5
6
7
# File 'lib/egp_rates/bank.rb', line 5

def sym
  @sym
end

Instance Method Details

#exchange_ratesObject

Abstract method Subclasses banks define the logic to get the exchange rates hash it should return [Hash] sell: { SYM: rate, … } , buy: { SYM: rate, … }

for the available currencies (represented by :SYM) on the bank pages

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/egp_rates/bank.rb', line 11

def exchange_rates
  raise NotImplementedError
end