lib/egp_rates/blom.rb
def raw_exchange_rates
      table_rows = Oga.parse_html(response.body).css('.tableHolder').first
      table_rows = table_rows&.css('tr')
      # Blom porvide 14 currencies on the home page (and 2 <th>)
      fail ResponseError, 'Unknown HTML' unless table_rows&.size == 16
      table_rows.lazy.drop(2).map(&:children).map do |row|
        row.map(&:text).map(&:strip)
      end
    end
def raw_exchange_rates
      table_rows = Oga.parse_html(response.body).css('.tableHolder').first
      table_rows = table_rows&.css('tr')
      # Blom porvide 14 currencies on the home page (and 2 <th>)
      fail ResponseError, 'Unknown HTML' unless table_rows&.size == 16
      table_rows.lazy.drop(2).map(&:children).map do |row|
        row.map(&:text).map(&:strip)
      end
    end
def raw_exchange_rates table_rows = Oga . parse_html ( response . body ) . css ( '.tableHolder' ) . first table_rows = table_rows &. css ( 'tr' ) # Blom porvide 14 currencies on the home page (and 2 <th>) fail ResponseError , 'Unknown HTML' unless table_rows &. size == 16 table_rows . lazy . drop ( 2 ) . map ( :children ) . map do | row | row . map ( :text ) . map ( :strip ) end end
Send the request to the URL and retrun raw data of the response
 @return [Enumerator::Lazy] with the table row in HTML that evaluates to
   [
     ["", "USD   02", "", "", "", ..., "17.0000", "", "17.7500", ""]
     ["", "EURO  30", "", "", "", ..., "17.9690", "", "18.8896", ""]
     ...
   ]
Send the request to the URL and retrun raw data of the response