module Weese::Rail::RequiresLine
These requests require a Line
Public Instance Methods
stations(line = nil)
click to toggle source
Station
location and address information for all stations on the given line. {developer.wmata.com/docs/services/5476364f031f590f38092507/operations/5476364f031f5909e4fe330c WMATA Documentation}
@param [String] line A Line
code
@raise [WeeseError] If request or JSON parse fails
@return [Hash] JSON Response
# 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