Class: GoogleAnalytics::SingleEvent
- Inherits:
-
Object
- Object
- GoogleAnalytics::SingleEvent
- Defined in:
- lib/google-analytics/events/event.rb
Direct Known Subclasses
Events::Ecommerce::ClearTransaction, Events::Ecommerce::TrackTransaction
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, *params) ⇒ SingleEvent
constructor
A new instance of SingleEvent.
- #single_event? ⇒ Boolean
Constructor Details
#initialize(action, *params) ⇒ SingleEvent
Returns a new instance of SingleEvent.
19 20 21 22 |
# File 'lib/google-analytics/events/event.rb', line 19 def initialize(action, *params) @action = action @params = params end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
18 19 20 |
# File 'lib/google-analytics/events/event.rb', line 18 def action @action end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
18 19 20 |
# File 'lib/google-analytics/events/event.rb', line 18 def name @name end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
18 19 20 |
# File 'lib/google-analytics/events/event.rb', line 18 def params @params end |
Instance Method Details
#single_event? ⇒ Boolean
23 24 25 |
# File 'lib/google-analytics/events/event.rb', line 23 def single_event? true end |