lib/egp_rates/adib.rb
def raw_exchange_rates
      table_rows = Oga.parse_html(response.body).css('#ratesContainer li')
      # ADIB porvide 5 currencies on the home page (and 4 rows of info)
      fail ResponseError, 'Unknown HTML' unless table_rows&.size == 5
      currencies(table_rows).zip(rates(table_rows))
    end
def raw_exchange_rates
      table_rows = Oga.parse_html(response.body).css('#ratesContainer li')
      # ADIB porvide 5 currencies on the home page (and 4 rows of info)
      fail ResponseError, 'Unknown HTML' unless table_rows&.size == 5
      currencies(table_rows).zip(rates(table_rows))
    end
def raw_exchange_rates table_rows = Oga . parse_html ( response . body ) . css ( '#ratesContainer li' ) # ADIB porvide 5 currencies on the home page (and 4 rows of info) fail ResponseError , 'Unknown HTML' unless table_rows &. size == 5 currencies ( table_rows ) . zip ( rates ( table_rows ) ) end
Send the request to the URL and retrun raw data of the response
 @return [Array<Array>] containing image url (currency) and exchange rates
   [
     ["/media/246206/usd.png", [["Buy: 18.1000", "Sell: 18.85"]]],
     ["/media/246211/gbp.png", [["Buy: 22.1019", "Sell: 23.1365"]]]
     ...
   ]
Send the request to the URL and retrun raw data of the response