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.



13763
13764
13765
# File 'lib/google/apis/content_v2_1/classes.rb', line 13763

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



13755
13756
13757
# File 'lib/google/apis/content_v2_1/classes.rb', line 13755

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)


13761
13762
13763
# File 'lib/google/apis/content_v2_1/classes.rb', line 13761

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13768
13769
13770
13771
# File 'lib/google/apis/content_v2_1/classes.rb', line 13768

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