Class: Google::Apis::ContentV2_1::ShippingsettingsGetSupportedHolidaysResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/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) ⇒ ShippingsettingsGetSupportedHolidaysResponse

Returns a new instance of ShippingsettingsGetSupportedHolidaysResponse.



11326
11327
11328
# File 'generated/google/apis/content_v2_1/classes.rb', line 11326

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

Instance Attribute Details

#holidaysArray<Google::Apis::ContentV2_1::HolidaysHoliday>

A list of holidays applicable for delivery guarantees. May be empty. Corresponds to the JSON property holidays



11318
11319
11320
# File 'generated/google/apis/content_v2_1/classes.rb', line 11318

def holidays
  @holidays
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# shippingsettingsGetSupportedHolidaysResponse". Corresponds to the JSON property kind

Returns:

  • (String)


11324
11325
11326
# File 'generated/google/apis/content_v2_1/classes.rb', line 11324

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11331
11332
11333
11334
# File 'generated/google/apis/content_v2_1/classes.rb', line 11331

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