Class: Google::Apis::ContentV2::ShippingsettingsGetSupportedHolidaysResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShippingsettingsGetSupportedHolidaysResponse

Returns a new instance of ShippingsettingsGetSupportedHolidaysResponse.



10507
10508
10509
# File 'lib/google/apis/content_v2/classes.rb', line 10507

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

Instance Attribute Details

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

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



10499
10500
10501
# File 'lib/google/apis/content_v2/classes.rb', line 10499

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)


10505
10506
10507
# File 'lib/google/apis/content_v2/classes.rb', line 10505

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10512
10513
10514
10515
# File 'lib/google/apis/content_v2/classes.rb', line 10512

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