Class: Google::Apis::DfareportingV2_1::DateRange

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

Overview

Represents a date range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DateRange

Returns a new instance of DateRange.



3917
3918
3919
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3917

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

Instance Attribute Details

#end_dateDate

The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd" . Corresponds to the JSON property endDate

Returns:

  • (Date)


3899
3900
3901
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3899

def end_date
  @end_date
end

#kindString

The kind of resource this is, in this case dfareporting#dateRange. Corresponds to the JSON property kind

Returns:

  • (String)


3904
3905
3906
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3904

def kind
  @kind
end

#relative_date_rangeString

The date range relative to the date of when the report is run. Corresponds to the JSON property relativeDateRange

Returns:

  • (String)


3909
3910
3911
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3909

def relative_date_range
  @relative_date_range
end

#start_dateDate

The start date of the date range, inclusive. A string of the format: "yyyy-MM- dd". Corresponds to the JSON property startDate

Returns:

  • (Date)


3915
3916
3917
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3915

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3922
3923
3924
3925
3926
3927
# File 'generated/google/apis/dfareporting_v2_1/classes.rb', line 3922

def update!(**args)
  @end_date = args[:end_date] unless args[:end_date].nil?
  @kind = args[:kind] unless args[:kind].nil?
  @relative_date_range = args[:relative_date_range] unless args[:relative_date_range].nil?
  @start_date = args[:start_date] unless args[:start_date].nil?
end