Class: Google::Apis::AnalyticsreportingV4::EventData

Inherits:
Object
  • Object
show all
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

Represents all the details pertaining to an event.

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

Returns a new instance of EventData



592
593
594
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 592

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

Instance Attribute Details

#event_actionString

Type of interaction with the object. Eg: 'play'. Corresponds to the JSON property eventAction

Returns:

  • (String)


570
571
572
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 570

def event_action
  @event_action
end

#event_categoryString

The object on the page that was interacted with. Eg: 'Video'. Corresponds to the JSON property eventCategory

Returns:

  • (String)


575
576
577
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 575

def event_category
  @event_category
end

#event_countFixnum

Number of such events in this activity. Corresponds to the JSON property eventCount

Returns:

  • (Fixnum)


580
581
582
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 580

def event_count
  @event_count
end

#event_labelString

Label attached with the event. Corresponds to the JSON property eventLabel

Returns:

  • (String)


585
586
587
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 585

def event_label
  @event_label
end

#event_valueFixnum

Numeric value associated with the event. Corresponds to the JSON property eventValue

Returns:

  • (Fixnum)


590
591
592
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 590

def event_value
  @event_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



597
598
599
600
601
602
603
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 597

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