Class: GoogleAnalytics::Event
- Inherits:
-
Object
- Object
- GoogleAnalytics::Event
- Defined in:
- lib/google-analytics/events/event.rb
Direct Known Subclasses
GoogleAnalytics::Events::AnonymizeIp, GoogleAnalytics::Events::DeleteCustomVar, GoogleAnalytics::Events::Ecommerce::AddItem, GoogleAnalytics::Events::Ecommerce::AddTransaction, GoogleAnalytics::Events::ExperimentId, GoogleAnalytics::Events::ExperimentVariation, GoogleAnalytics::Events::Require, GoogleAnalytics::Events::SetCustomDimension, GoogleAnalytics::Events::SetCustomMetric, GoogleAnalytics::Events::SetCustomVar, GoogleAnalytics::Events::SetupAnalytics, GoogleAnalytics::Events::TrackEvent, GoogleAnalytics::Events::TrackPageview
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(action, name, *params) ⇒ Event
constructor
A new instance of Event.
- #single_event? ⇒ Boolean
Constructor Details
#initialize(action, name, *params) ⇒ Event
Returns a new instance of Event.
7 8 9 10 11 |
# File 'lib/google-analytics/events/event.rb', line 7 def initialize(action, name, *params) @action = action @name = name @params = params end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
5 6 7 |
# File 'lib/google-analytics/events/event.rb', line 5 def action @action end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/google-analytics/events/event.rb', line 5 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
5 6 7 |
# File 'lib/google-analytics/events/event.rb', line 5 def params @params end |
Instance Method Details
#single_event? ⇒ Boolean
13 14 15 |
# File 'lib/google-analytics/events/event.rb', line 13 def single_event? false end |