Class: Google::Apis::AnalyticsreportingV4::EventData
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::EventData
- 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
-
#event_action ⇒ String
Type of interaction with the object.
-
#event_category ⇒ String
The object on the page that was interacted with.
-
#event_count ⇒ Fixnum
Number of such events in this activity.
-
#event_label ⇒ String
Label attached with the event.
-
#event_value ⇒ Fixnum
Numeric value associated with the event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EventData
constructor
A new instance of EventData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EventData
Returns a new instance of EventData.
595 596 597 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 595 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_action ⇒ String
Type of interaction with the object. Eg: 'play'.
Corresponds to the JSON property eventAction
573 574 575 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 573 def event_action @event_action end |
#event_category ⇒ String
The object on the page that was interacted with. Eg: 'Video'.
Corresponds to the JSON property eventCategory
578 579 580 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 578 def event_category @event_category end |
#event_count ⇒ Fixnum
Number of such events in this activity.
Corresponds to the JSON property eventCount
583 584 585 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 583 def event_count @event_count end |
#event_label ⇒ String
Label attached with the event.
Corresponds to the JSON property eventLabel
588 589 590 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 588 def event_label @event_label end |
#event_value ⇒ Fixnum
Numeric value associated with the event.
Corresponds to the JSON property eventValue
593 594 595 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 593 def event_value @event_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
600 601 602 603 604 605 606 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 600 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 |