Class: Google::Apis::DfareportingV4::DateRange

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

Overview

Represents a date range.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DateRange

Returns a new instance of DateRange.



5086
5087
5088
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5086

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

Instance Attribute Details

#end_dateDate

Corresponds to the JSON property endDate

Returns:

  • (Date)


5069
5070
5071
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5069

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)


5074
5075
5076
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5074

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)


5079
5080
5081
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5079

def relative_date_range
  @relative_date_range
end

#start_dateDate

Corresponds to the JSON property startDate

Returns:

  • (Date)


5084
5085
5086
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5084

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5091
5092
5093
5094
5095
5096
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 5091

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