Class: EGPRates::Bank
- Inherits:
-
Object
- Object
- EGPRates::Bank
- Defined in:
- lib/egp_rates/bank.rb
Overview
Class Representing the bank to get the data from
Direct Known Subclasses
AAIB, ADIB, AlAhliBankOfKuwait, AlBarakaBank, AlexBank, BanqueDuCaire, BanqueMisr, Blom, CAE, CBE, CIB, EDBE, EGB, FaisalBank, MIDB, NBE, NBG, SuezCanalBank, UBE
Instance Attribute Summary collapse
-
#sym ⇒ Object
readonly
Returns the value of attribute sym.
Instance Method Summary collapse
-
#exchange_rates ⇒ Object
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.
Instance Attribute Details
#sym ⇒ Object (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_rates ⇒ Object
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
11 12 13 |
# File 'lib/egp_rates/bank.rb', line 11 def exchange_rates raise NotImplementedError end |