Class: Google::Apis::ContentV2::TransitTable

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TransitTable

Returns a new instance of TransitTable.



10932
10933
10934
# File 'generated/google/apis/content_v2/classes.rb', line 10932

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#postal_code_group_namesArray<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

Returns:

  • (Array<String>)


10919
10920
10921
# File 'generated/google/apis/content_v2/classes.rb', line 10919

def postal_code_group_names
  @postal_code_group_names
end

#rowsArray<Google::Apis::ContentV2::TransitTableTransitTimeRow>

Corresponds to the JSON property rows



10924
10925
10926
# File 'generated/google/apis/content_v2/classes.rb', line 10924

def rows
  @rows
end

#transit_time_labelsArray<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

Returns:

  • (Array<String>)


10930
10931
10932
# File 'generated/google/apis/content_v2/classes.rb', line 10930

def transit_time_labels
  @transit_time_labels
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10937
10938
10939
10940
10941
# File 'generated/google/apis/content_v2/classes.rb', line 10937

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