Class: Google::Apis::DisplayvideoV2::LineItemFlight

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

Overview

Settings that control the active duration of a line item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LineItemFlight

Returns a new instance of LineItemFlight.



7244
7245
7246
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 7244

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

Instance Attribute Details

#date_rangeGoogle::Apis::DisplayvideoV2::DateRange

A date range. Corresponds to the JSON property dateRange



7237
7238
7239
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 7237

def date_range
  @date_range
end

#flight_date_typeString

Required. The type of the line item's flight dates. Corresponds to the JSON property flightDateType

Returns:

  • (String)


7242
7243
7244
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 7242

def flight_date_type
  @flight_date_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7249
7250
7251
7252
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 7249

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