Class: Google::Apis::DfareportingV2_8::DateRange
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::DfareportingV2_8::DateRange
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - generated/google/apis/dfareporting_v2_8/classes.rb,
generated/google/apis/dfareporting_v2_8/representations.rb,
generated/google/apis/dfareporting_v2_8/representations.rb 
Overview
Represents a date range.
Instance Attribute Summary collapse
- 
  
    
      #end_date  ⇒ Date 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The end date of the date range, inclusive.
 - 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The kind of resource this is, in this case dfareporting#dateRange.
 - 
  
    
      #relative_date_range  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The date range relative to the date of when the report is run.
 - 
  
    
      #start_date  ⇒ Date 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The start date of the date range, inclusive.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ DateRange 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of DateRange.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DateRange
Returns a new instance of DateRange
      4534 4535 4536  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4534 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#end_date ⇒ Date
The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd"
.
Corresponds to the JSON property endDate
      4516 4517 4518  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4516 def end_date @end_date end  | 
  
#kind ⇒ String
The kind of resource this is, in this case dfareporting#dateRange.
Corresponds to the JSON property kind
      4521 4522 4523  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4521 def kind @kind end  | 
  
#relative_date_range ⇒ String
The date range relative to the date of when the report is run.
Corresponds to the JSON property relativeDateRange
      4526 4527 4528  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4526 def relative_date_range @relative_date_range end  | 
  
#start_date ⇒ Date
The start date of the date range, inclusive. A string of the format: "yyyy-MM-
dd".
Corresponds to the JSON property startDate
      4532 4533 4534  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4532 def start_date @start_date end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      4539 4540 4541 4542 4543 4544  | 
    
      # File 'generated/google/apis/dfareporting_v2_8/classes.rb', line 4539 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  |