Class: Google::Apis::ContentV2::DeliveryTime

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) ⇒ DeliveryTime

Returns a new instance of DeliveryTime.



2237
2238
2239
# File 'generated/google/apis/content_v2/classes.rb', line 2237

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

Instance Attribute Details

#max_transit_time_in_daysFixnum

Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to minTransitTimeInDays. Required. Corresponds to the JSON property maxTransitTimeInDays

Returns:

  • (Fixnum)


2229
2230
2231
# File 'generated/google/apis/content_v2/classes.rb', line 2229

def max_transit_time_in_days
  @max_transit_time_in_days
end

#min_transit_time_in_daysFixnum

Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Required. Corresponds to the JSON property minTransitTimeInDays

Returns:

  • (Fixnum)


2235
2236
2237
# File 'generated/google/apis/content_v2/classes.rb', line 2235

def min_transit_time_in_days
  @min_transit_time_in_days
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2242
2243
2244
2245
# File 'generated/google/apis/content_v2/classes.rb', line 2242

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