class OnebusawaySDK::Resources::ReportProblemWithStop
def retrieve(stop_id, params = {})
-
(OnebusawaySDK::Models::ResponseWrapper)
-
Options Hash:
(**params)
-
:request_options
(OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil
) -- -
:user_lon
(Float
) -- The reporting user’s current longitude -
:user_location_accuracy
(Float
) -- The reporting user’s location accuracy, in meters -
:user_lat
(Float
) -- The reporting user’s current latitude -
:user_comment
(String
) -- Additional comment text supplied by the user describing the problem -
:code
(Symbol, OnebusawaySDK::Models::ReportProblemWithStopRetrieveParams::Code
) -- A string code identifying the nature of the problem
Parameters:
-
params
(OnebusawaySDK::Models::ReportProblemWithStopRetrieveParams, Hash{Symbol=>Object}
) -- . -
stop_id
(String
) -- The ID of the stop
def retrieve(stop_id, params = {}) parsed, options = OnebusawaySDK::Models::ReportProblemWithStopRetrieveParams.dump_request(params) @client.request( method: :get, path: ["api/where/report-problem-with-stop/%0s.json", stop_id], query: parsed, model: OnebusawaySDK::Models::ResponseWrapper, options: options ) end