Class: Google::Apis::Searchads360V23::GoogleAdsSearchads360V23CommonHotelCheckInDateRangeInfo

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

Overview

Criterion for a check-in date range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAdsSearchads360V23CommonHotelCheckInDateRangeInfo

Returns a new instance of GoogleAdsSearchads360V23CommonHotelCheckInDateRangeInfo.



5444
5445
5446
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5444

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

Instance Attribute Details

#end_dateString

End date in the YYYY-MM-DD format. Corresponds to the JSON property endDate

Returns:

  • (String)


5437
5438
5439
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5437

def end_date
  @end_date
end

#start_dateString

Start date in the YYYY-MM-DD format. Corresponds to the JSON property startDate

Returns:

  • (String)


5442
5443
5444
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5442

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5449
5450
5451
5452
# File 'lib/google/apis/searchads360_v23/classes.rb', line 5449

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