Class: GoogleAnalytics::Event

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, 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

#actionObject (readonly)

Returns the value of attribute action.



5
6
7
# File 'lib/google-analytics/events/event.rb', line 5

def action
  @action
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/google-analytics/events/event.rb', line 5

def name
  @name
end

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

Returns:

  • (Boolean)


13
14
15
# File 'lib/google-analytics/events/event.rb', line 13

def single_event?
  false
end