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. This is included in the response, for several reasons: 1) The request may have specified start or end times relative to the time the request was sent; the response indicates the corresponding absolute time interval. 2) The request may have specified an end time past the latest time for which data was available (e.g. if requesting data for the today); the response indicates the latest time for which data was actually returned. 3) The response data for a single request may be broken down into multiple time intervals, if a time series was requested.

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) ⇒ TimeInterval

Returns a new instance of TimeInterval



399
400
401
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 399

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)


391
392
393
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 391

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)


397
398
399
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 397

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



404
405
406
407
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 404

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