Class: OnebusawaySDK::Models::ReportProblemWithStopRetrieveParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb

Overview

Defined Under Namespace

Modules: Code

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(code: nil, user_comment: nil, user_lat: nil, user_location_accuracy: nil, user_lon: nil, request_options: {}) ⇒ Object

Parameters:

  • code (Symbol, OnebusawaySDK::Models::ReportProblemWithStopRetrieveParams::Code) (defaults to: nil)

    A string code identifying the nature of the problem

  • user_comment (String) (defaults to: nil)

    Additional comment text supplied by the user describing the problem

  • user_lat (Float) (defaults to: nil)

    The reporting user’s current latitude

  • user_location_accuracy (Float) (defaults to: nil)

    The reporting user’s location accuracy, in meters

  • user_lon (Float) (defaults to: nil)

    The reporting user’s current longitude

  • request_options (OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb', line 40

Instance Attribute Details

#codeSymbol, ...

A string code identifying the nature of the problem



14
# File 'lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb', line 14

optional :code, enum: -> { OnebusawaySDK::ReportProblemWithStopRetrieveParams::Code }

#user_commentString?

Additional comment text supplied by the user describing the problem

Returns:

  • (String, nil)


20
# File 'lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb', line 20

optional :user_comment, String

#user_latFloat?

The reporting user’s current latitude

Returns:

  • (Float, nil)


26
# File 'lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb', line 26

optional :user_lat, Float

#user_location_accuracyFloat?

The reporting user’s location accuracy, in meters

Returns:

  • (Float, nil)


32
# File 'lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb', line 32

optional :user_location_accuracy, Float

#user_lonFloat?

The reporting user’s current longitude

Returns:

  • (Float, nil)


38
# File 'lib/onebusaway_sdk/models/report_problem_with_stop_retrieve_params.rb', line 38

optional :user_lon, Float