Module: Bort::Station
- Defined in:
- lib/bort/station.rb
Defined Under Namespace
Classes: Station
Class Method Summary collapse
- .access_info(station, print_legend = false) ⇒ Object
- .info(abbreviation) ⇒ Object
- .stations ⇒ Object
Class Method Details
.access_info(station, print_legend = false) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/bort/station.rb', line 63 def self.access_info(station, print_legend=false) = { :action => 'stn', :cmd => 'stnaccess', :orig => station, :l => print_legend ? '1' : '0', } xml = Util.download() data = Hpricot(xml) puts (data/:legend).inner_text if print_legend Station.parse((data/:station).first) end |