Class: Google::Apis::DfareportingV3_5::DateRange

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dfareporting_v3_5/classes.rb,
lib/google/apis/dfareporting_v3_5/representations.rb,
lib/google/apis/dfareporting_v3_5/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.



4739
4740
4741
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 4739

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

Instance Attribute Details

#end_dateDate

Corresponds to the JSON property endDate

Returns:

  • (Date)


4722
4723
4724
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 4722

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)


4727
4728
4729
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 4727

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)


4732
4733
4734
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 4732

def relative_date_range
  @relative_date_range
end

#start_dateDate

Corresponds to the JSON property startDate

Returns:

  • (Date)


4737
4738
4739
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 4737

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4744
4745
4746
4747
4748
4749
# File 'lib/google/apis/dfareporting_v3_5/classes.rb', line 4744

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