Class: EhbrsRubyUtils::Booking::Processors::List

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/booking/processors/list.rb,
lib/ehbrs_ruby_utils/booking/processors/list/build_accommodation.rb

Defined Under Namespace

Classes: BuildAccommodation

Constant Summary collapse

CLOSE_BANNER_XPATH =
'//button[@aria-label = "Ignorar informações de login."]'
MORE_RESULTS_XPATH =
'//*[text() = "Ver mais resultados"]'
SCROLL_DOWN_STEP =
500

Instance Method Summary collapse

Instance Method Details

#accommodationsArray

Returns:

  • (Array)


19
20
21
# File 'lib/ehbrs_ruby_utils/booking/processors/list.rb', line 19

def accommodations
  data.fetch(:accommodations).map { |a| build_accommodation(a) }
end

#declared_countInteger

Returns:

  • (Integer)


24
25
26
# File 'lib/ehbrs_ruby_utils/booking/processors/list.rb', line 24

def declared_count
  data.fetch(:declared_count)
end