def station_time(station)

      # If a station has multiple stations codes we join the codes together
      @station_code = station['Code']
      if !station['StationTogether1'].empty?
        @station_code += ",#{station['StationTogether1']}"
      end
      if !station['StationTogether2'].empty?
        @station_code += ",#{station['StationTogether2']}"
      end

      # The call to the api is made and the prediction times are returned
      @metro_time = RestClient.get "#{BASE_URL}/StationPrediction.svc/json/GetPrediction/#{@station_code}", :params => {
        "api_key" => API_KEY,
        "subscription-key" => API_KEY
        }
      @metro_time
    end
def station_time(station)

      # If a station has multiple stations codes we join the codes together
      @station_code = station['Code']
      if !station['StationTogether1'].empty?
        @station_code += ",#{station['StationTogether1']}"
      end
      if !station['StationTogether2'].empty?
        @station_code += ",#{station['StationTogether2']}"
      end

      # The call to the api is made and the prediction times are returned
      @metro_time = RestClient.get "#{BASE_URL}/StationPrediction.svc/json/GetPrediction/#{@station_code}", :params => {
        "api_key" => API_KEY,
        "subscription-key" => API_KEY
        }
      @metro_time
    end
This makes an api call to grab the train arrival and departure predictions.
 If more than one line is present at a station, such is concatenated and
 the call is made on all lines.