Class: Google::Apis::DfareportingV2_6::DateRange

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

Overview

Represents a date range.

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

Returns a new instance of DateRange



4343
4344
4345
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4343

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)


4325
4326
4327
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4325

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)


4330
4331
4332
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4330

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)


4335
4336
4337
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4335

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)


4341
4342
4343
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4341

def start_date
  @start_date
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4348
4349
4350
4351
4352
4353
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 4348

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