Class: EGPRates::AlAhliBankOfKuwait

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

Overview

Al Ahli Bank Of Kuwait

Instance Attribute Summary

Attributes inherited from Bank

#sym

Instance Method Summary collapse

Constructor Details

#initializeAlAhliBankOfKuwait

Returns a new instance of AlAhliBankOfKuwait.



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

def initialize
  @sym = :AlAhliBankOfKuwait
  @uri = URI.parse('http://www.abkegypt.com/rates_abk.aspx')
end

Instance Method Details

#exchange_ratesHash

Returns of exchange rates for selling and buying {

{ sell: { SYM: rate }, { SYM: rate }, ... },
{ buy:  { SYM: rate }, { SYM: rate }, ... }

}.

Returns:

  • (Hash)

    of exchange rates for selling and buying {

    { sell: { SYM: rate }, { SYM: rate }, ... },
    { buy:  { SYM: rate }, { SYM: rate }, ... }
    

    }



15
16
17
# File 'lib/egp_rates/al_ahli_bank_of_kuwait.rb', line 15

def exchange_rates
  @exchange_rates ||= parse(raw_exchange_rates)
end