Class: OnebusawaySDK::Models::AgenciesWithCoverageListResponse::Data::List

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(agency_id: , lat: , lat_span: , lon: , lon_span: ) ⇒ Object

Parameters:

  • agency_id (String) (defaults to: )
  • lat (Float) (defaults to: )
  • lat_span (Float) (defaults to: )
  • lon (Float) (defaults to: )
  • lon_span (Float) (defaults to: )


37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb', line 37

class List < OnebusawaySDK::Internal::Type::BaseModel
  # @!attribute agency_id
  #
  #   @return [String]
  required :agency_id, String, api_name: :agencyId

  # @!attribute lat
  #
  #   @return [Float]
  required :lat, Float

  # @!attribute lat_span
  #
  #   @return [Float]
  required :lat_span, Float, api_name: :latSpan

  # @!attribute lon
  #
  #   @return [Float]
  required :lon, Float

  # @!attribute lon_span
  #
  #   @return [Float]
  required :lon_span, Float, api_name: :lonSpan

  # @!method initialize(agency_id:, lat:, lat_span:, lon:, lon_span:)
  #   @param agency_id [String]
  #   @param lat [Float]
  #   @param lat_span [Float]
  #   @param lon [Float]
  #   @param lon_span [Float]
end

Instance Attribute Details

#agency_idString

Returns:

  • (String)


41
# File 'lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb', line 41

required :agency_id, String, api_name: :agencyId

#latFloat

Returns:

  • (Float)


46
# File 'lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb', line 46

required :lat, Float

#lat_spanFloat

Returns:

  • (Float)


51
# File 'lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb', line 51

required :lat_span, Float, api_name: :latSpan

#lonFloat

Returns:

  • (Float)


56
# File 'lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb', line 56

required :lon, Float

#lon_spanFloat

Returns:

  • (Float)


61
# File 'lib/onebusaway_sdk/models/agencies_with_coverage_list_response.rb', line 61

required :lon_span, Float, api_name: :lonSpan