Class: Google::Apis::ContentV2::TransitTable
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::TransitTable
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#postal_code_group_names ⇒ Array<String>
A list of postal group names.
-
#rows ⇒ Array<Google::Apis::ContentV2::TransitTableTransitTimeRow>
Corresponds to the JSON property
rows
. -
#transit_time_labels ⇒ Array<String>
A list of transit time labels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransitTable
constructor
A new instance of TransitTable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransitTable
Returns a new instance of TransitTable.
10988 10989 10990 |
# File 'lib/google/apis/content_v2/classes.rb', line 10988 def initialize(**args) update!(**args) end |
Instance Attribute Details
#postal_code_group_names ⇒ Array<String>
A list of postal group names. The last value can be "all other locations"
.
Example: ["zone 1", "zone 2", "all other locations"]
. The referred postal
code groups must match the delivery country of the service.
Corresponds to the JSON property postalCodeGroupNames
10975 10976 10977 |
# File 'lib/google/apis/content_v2/classes.rb', line 10975 def postal_code_group_names @postal_code_group_names end |
#rows ⇒ Array<Google::Apis::ContentV2::TransitTableTransitTimeRow>
Corresponds to the JSON property rows
10980 10981 10982 |
# File 'lib/google/apis/content_v2/classes.rb', line 10980 def rows @rows end |
#transit_time_labels ⇒ Array<String>
A list of transit time labels. The last value can be "all other labels"
.
Example: ["food", "electronics", "all other labels"]
.
Corresponds to the JSON property transitTimeLabels
10986 10987 10988 |
# File 'lib/google/apis/content_v2/classes.rb', line 10986 def transit_time_labels @transit_time_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10993 10994 10995 10996 10997 |
# File 'lib/google/apis/content_v2/classes.rb', line 10993 def update!(**args) @postal_code_group_names = args[:postal_code_group_names] if args.key?(:postal_code_group_names) @rows = args[:rows] if args.key?(:rows) @transit_time_labels = args[:transit_time_labels] if args.key?(:transit_time_labels) end |