Class: Gares::Services

Inherits:
Base
  • Object
show all
Defined in:
lib/gares/services.rb

Constant Summary

Constants inherited from Base

Base::GPS_COORD, Base::NAME

Instance Attribute Summary

Attributes inherited from Base

#name, #slug

Instance Method Summary collapse

Methods inherited from Base

#defibrillateur?, #has_borne?, #horaires, #initialize, #lat, #long, #sales, #services, #wifi?

Constructor Details

This class inherits a constructor from Gares::Base

Instance Method Details

#allObject


4
5
6
7
# File 'lib/gares/services.rb', line 4

def all
  document.search('#page_content_resize_true h2').
    map { |title| title.inner_html } rescue []
end