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.
Constructor Details
#initialize(**args) ⇒ EventData
Returns a new instance of EventData.
566 567 568 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 566 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
544 545 546 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 544 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
549 550 551 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 549 def event_category @event_category end |
#event_count ⇒ Fixnum
Number of such events in this activity.
Corresponds to the JSON property eventCount
554 555 556 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 554 def event_count @event_count end |
#event_label ⇒ String
Label attached with the event.
Corresponds to the JSON property eventLabel
559 560 561 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 559 def event_label @event_label end |
#event_value ⇒ Fixnum
Numeric value associated with the event.
Corresponds to the JSON property eventValue
564 565 566 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 564 def event_value @event_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
571 572 573 574 575 576 577 |
# File 'generated/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 |