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.



595
596
597
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 595

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)


573
574
575
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 573

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)


578
579
580
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 578

def event_category
  @event_category
end

#event_countFixnum

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

Returns:

  • (Fixnum)


583
584
585
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 583

def event_count
  @event_count
end

#event_labelString

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

Returns:

  • (String)


588
589
590
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 588

def event_label
  @event_label
end

#event_valueFixnum

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

Returns:

  • (Fixnum)


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