Module: Weese::Rail::RequiresLine
Overview
These requests require a Line
Instance Method Summary collapse
-
#stations(line = nil) ⇒ Hash
Station location and address information for all stations on the given line.
Methods included from Weese::Requests::Requester
Instance Method Details
#stations(line = nil) ⇒ Hash
Station location and address information for all stations on the given line. WMATA Documentation
73 74 75 76 77 78 79 80 81 82 83 |
# File 'lib/weese/rail/line.rb', line 73 def stations(line = nil) query = line ? { LineCode: line } : {} fetch( Requests::Request.new( @api_key, Rail::Urls::STATIONS, query ) ) end |