Class: Google::Apis::ContentV2::TransitTableTransitTimeRowTransitTimeValue

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

Constructor Details

#initialize(**args) ⇒ TransitTableTransitTimeRowTransitTimeValue

Returns a new instance of TransitTableTransitTimeRowTransitTimeValue.



11346
11347
11348
# File 'generated/google/apis/content_v2/classes.rb', line 11346

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

Instance Attribute Details

#max_transit_time_in_daysFixnum

Must be greater than or equal to minTransitTimeInDays. Corresponds to the JSON property maxTransitTimeInDays

Returns:

  • (Fixnum)


11338
11339
11340
# File 'generated/google/apis/content_v2/classes.rb', line 11338

def max_transit_time_in_days
  @max_transit_time_in_days
end

#min_transit_time_in_daysFixnum

Transit time range (min-max) in business days. 0 means same day delivery, 1 means next day delivery. Corresponds to the JSON property minTransitTimeInDays

Returns:

  • (Fixnum)


11344
11345
11346
# File 'generated/google/apis/content_v2/classes.rb', line 11344

def min_transit_time_in_days
  @min_transit_time_in_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11351
11352
11353
11354
# File 'generated/google/apis/content_v2/classes.rb', line 11351

def update!(**args)
  @max_transit_time_in_days = args[:max_transit_time_in_days] if args.key?(:max_transit_time_in_days)
  @min_transit_time_in_days = args[:min_transit_time_in_days] if args.key?(:min_transit_time_in_days)
end