class Google::Apis::AnalyticsreportingV4::EventData

Represents all the details pertaining to an event.

Attributes

event_action[RW]

Type of interaction with the object. Eg: 'play'. Corresponds to the JSON property `eventAction` @return [String]

event_category[RW]

The object on the page that was interacted with. Eg: 'Video'. Corresponds to the JSON property `eventCategory` @return [String]

event_count[RW]

Number of such events in this activity. Corresponds to the JSON property `eventCount` @return [Fixnum]

event_label[RW]

Label attached with the event. Corresponds to the JSON property `eventLabel` @return [String]

event_value[RW]

Numeric value associated with the event. Corresponds to the JSON property `eventValue` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 566
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsreporting_v4/classes.rb, line 571
def update!(**args)
  @event_action = args[:event_action] if args.key?(:event_action)
  @event_category = args[:event_category] if args.key?(:event_category)
  @event_count = args[:event_count] if args.key?(:event_count)
  @event_label = args[:event_label] if args.key?(:event_label)
  @event_value = args[:event_value] if args.key?(:event_value)
end