Class: GoogleAnalytics::SingleEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/google-analytics/events/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



18
19
20
# File 'lib/google-analytics/events/event.rb', line 18

def action
  @action
end

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/google-analytics/events/event.rb', line 18

def name
  @name
end

#paramsObject (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

Returns:

  • (Boolean)


23
24
25
# File 'lib/google-analytics/events/event.rb', line 23

def single_event?
  true
end