Class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargetingDayPart

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TargetingValueDayPartTargetingDayPart

Returns a new instance of TargetingValueDayPartTargetingDayPart.



3358
3359
3360
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3358

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

Instance Attribute Details

#day_of_weekString

Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


3336
3337
3338
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3336

def day_of_week
  @day_of_week
end

#end_hourFixnum

Corresponds to the JSON property endHour

Returns:

  • (Fixnum)


3341
3342
3343
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3341

def end_hour
  @end_hour
end

#end_minuteFixnum

Corresponds to the JSON property endMinute

Returns:

  • (Fixnum)


3346
3347
3348
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3346

def end_minute
  @end_minute
end

#start_hourFixnum

Corresponds to the JSON property startHour

Returns:

  • (Fixnum)


3351
3352
3353
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3351

def start_hour
  @start_hour
end

#start_minuteFixnum

Corresponds to the JSON property startMinute

Returns:

  • (Fixnum)


3356
3357
3358
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3356

def start_minute
  @start_minute
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3363
3364
3365
3366
3367
3368
3369
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 3363

def update!(**args)
  @day_of_week = args[:day_of_week] if args.key?(:day_of_week)
  @end_hour = args[:end_hour] if args.key?(:end_hour)
  @end_minute = args[:end_minute] if args.key?(:end_minute)
  @start_hour = args[:start_hour] if args.key?(:start_hour)
  @start_minute = args[:start_minute] if args.key?(:start_minute)
end