Class: Google::Apis::Adexchangebuyer2V2beta1::TimeInterval

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

Overview

An interval of time, with an absolute start and end.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeInterval

Returns a new instance of TimeInterval.



3949
3950
3951
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3949

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

Instance Attribute Details

#end_timeString

The timestamp marking the end of the range (exclusive) for which data is included. Corresponds to the JSON property endTime

Returns:

  • (String)


3941
3942
3943
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3941

def end_time
  @end_time
end

#start_timeString

The timestamp marking the start of the range (inclusive) for which data is included. Corresponds to the JSON property startTime

Returns:

  • (String)


3947
3948
3949
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3947

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3954
3955
3956
3957
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 3954

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