Class: Google::Apis::AnalyticsreportingV4::Cohort
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AnalyticsreportingV4::Cohort
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/analyticsreporting_v4/classes.rb,
 generated/google/apis/analyticsreporting_v4/representations.rb,
 generated/google/apis/analyticsreporting_v4/representations.rb
Overview
Defines a cohort. A cohort is a group of users who share a common characteristic. For example, all users with the same acquisition date belong to the same cohort.
Instance Attribute Summary collapse
- 
  
    
      #date_range  ⇒ Google::Apis::AnalyticsreportingV4::DateRange 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A contiguous set of days: startDate, startDate + 1 day, ..., endDate. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A unique name for the cohort. 
- 
  
    
      #type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Type of the cohort. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Cohort 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Cohort. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Cohort
Returns a new instance of Cohort
| 51 52 53 | # File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 51 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#date_range ⇒ Google::Apis::AnalyticsreportingV4::DateRange
A contiguous set of days: startDate, startDate + 1 day, ..., endDate.
The start and end dates are specified in
ISO8601 date format YYYY-MM-DD.
Corresponds to the JSON property dateRange
| 36 37 38 | # File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 36 def date_range @date_range end | 
#name ⇒ String
A unique name for the cohort. If not defined name will be auto-generated
with values cohort_[1234...].
Corresponds to the JSON property name
| 42 43 44 | # File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 42 def name @name end | 
#type ⇒ String
Type of the cohort. The only supported type as of now is
FIRST_VISIT_DATE. If this field is unspecified the cohort is treated
as FIRST_VISIT_DATE type cohort.
Corresponds to the JSON property type
| 49 50 51 | # File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 49 def type @type end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 56 57 58 59 60 | # File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 56 def update!(**args) @date_range = args[:date_range] if args.key?(:date_range) @name = args[:name] if args.key?(:name) @type = args[:type] if args.key?(:type) end |