Class: Ehbrs::Tools::Runner::Booking::Accommodations

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs/tools/runner/booking/accommodations.rb

Constant Summary collapse

FIELDS =
[
  [:link, 'Link'],
  [:price, 'Diárias'],
  [:tax, 'Taxas'],
  [:total, 'Total'],
  [:address, 'Localização'],
  [:distance, 'Dist. centro (Km)'],
  [:review_score, 'Nota'],
  [:review_count, 'Avaliações'],
  [:unit_title, 'Descrição']
].freeze

Instance Method Summary collapse

Instance Method Details

#runObject



28
29
30
31
32
33
34
35
36
37
# File 'lib/ehbrs/tools/runner/booking/accommodations.rb', line 28

def run
  run_output
  infov 'Actual count found', list_rows.count
  infov 'Declared count', processor.declared_count
  if list_rows.count == processor.declared_count
    success 'Ok!'
  else
    fatal_error 'Actual and declared counts are different'
  end
end