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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShippingsettingsGetSupportedHolidaysResponse

Returns a new instance of ShippingsettingsGetSupportedHolidaysResponse.



14858
14859
14860
# File 'lib/google/apis/content_v2_1/classes.rb', line 14858

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



14850
14851
14852
# File 'lib/google/apis/content_v2_1/classes.rb', line 14850

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)


14856
14857
14858
# File 'lib/google/apis/content_v2_1/classes.rb', line 14856

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14863
14864
14865
14866
# File 'lib/google/apis/content_v2_1/classes.rb', line 14863

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