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

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_actionString

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

Returns:

  • (String)


544
545
546
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 544

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)


549
550
551
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 549

def event_category
  @event_category
end

#event_countFixnum

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

Returns:

  • (Fixnum)


554
555
556
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 554

def event_count
  @event_count
end

#event_labelString

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

Returns:

  • (String)


559
560
561
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 559

def event_label
  @event_label
end

#event_valueFixnum

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

Returns:

  • (Fixnum)


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