Class: Google::Apis::Adexchangebuyer2V2beta1::RelativeDateRange
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::Adexchangebuyer2V2beta1::RelativeDateRange
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/adexchangebuyer2_v2beta1/classes.rb,
 generated/google/apis/adexchangebuyer2_v2beta1/representations.rb,
 generated/google/apis/adexchangebuyer2_v2beta1/representations.rb
Overview
A relative date range, specified by an offset and a duration. The supported range of dates begins 30 days before today and ends today. I.e. the limits for these values are: offset_days >= 0 duration_days >= 1 offset_days + duration_days <= 30
Instance Attribute Summary collapse
- 
  
    
      #duration_days  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The number of days in the requested date range. 
- 
  
    
      #offset_days  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The end date of the filter set, specified as the number of days before today. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ RelativeDateRange 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of RelativeDateRange. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RelativeDateRange
Returns a new instance of RelativeDateRange
| 1950 1951 1952 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1950 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#duration_days ⇒ Fixnum
The number of days in the requested date range. E.g. for a range spanning
today, 1. For a range spanning the last 7 days, 7.
Corresponds to the JSON property durationDays
| 1942 1943 1944 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1942 def duration_days @duration_days end | 
#offset_days ⇒ Fixnum
The end date of the filter set, specified as the number of days before
today. E.g. for a range where the last date is today, 0.
Corresponds to the JSON property offsetDays
| 1948 1949 1950 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1948 def offset_days @offset_days end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1955 1956 1957 1958 | # File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 1955 def update!(**args) @duration_days = args[:duration_days] if args.key?(:duration_days) @offset_days = args[:offset_days] if args.key?(:offset_days) end |