Class: Google::Apis::PartnersV2::Analytics

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

Overview

Analytics data for a Company within a single day.

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

Returns a new instance of Analytics



164
165
166
# File 'generated/google/apis/partners_v2/classes.rb', line 164

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

Instance Attribute Details

#contactsGoogle::Apis::PartnersV2::AnalyticsDataPoint

Details of the analytics events for a Company within a single day. Corresponds to the JSON property contacts



162
163
164
# File 'generated/google/apis/partners_v2/classes.rb', line 162

def contacts
  @contacts
end

#event_dateGoogle::Apis::PartnersV2::Date

Represents a whole calendar date, e.g. date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a year and month where the day is not significant, e.g. credit card expiration date. The year may be 0 to represent a month and day independent of year, e.g. anniversary date. Related types are google.type.TimeOfDay and google.protobuf.Timestamp. Corresponds to the JSON property eventDate



157
158
159
# File 'generated/google/apis/partners_v2/classes.rb', line 157

def event_date
  @event_date
end

#profile_viewsGoogle::Apis::PartnersV2::AnalyticsDataPoint

Details of the analytics events for a Company within a single day. Corresponds to the JSON property profileViews



146
147
148
# File 'generated/google/apis/partners_v2/classes.rb', line 146

def profile_views
  @profile_views
end

#search_viewsGoogle::Apis::PartnersV2::AnalyticsDataPoint

Details of the analytics events for a Company within a single day. Corresponds to the JSON property searchViews



141
142
143
# File 'generated/google/apis/partners_v2/classes.rb', line 141

def search_views
  @search_views
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



169
170
171
172
173
174
# File 'generated/google/apis/partners_v2/classes.rb', line 169

def update!(**args)
  @search_views = args[:search_views] if args.key?(:search_views)
  @profile_views = args[:profile_views] if args.key?(:profile_views)
  @event_date = args[:event_date] if args.key?(:event_date)
  @contacts = args[:contacts] if args.key?(:contacts)
end