Class: GoogleAnalytics::Events::DeleteCustomVar

Inherits:
GoogleAnalytics::Event show all
Defined in:
lib/google-analytics/events/events.rb

Instance Attribute Summary

Attributes inherited from GoogleAnalytics::Event

#name, #params

Instance Method Summary collapse

Constructor Details

#initialize(index) ⇒ DeleteCustomVar

Returns a new instance of DeleteCustomVar.

Raises:

  • (ArgumentError)


64
65
66
67
# File 'lib/google-analytics/events/events.rb', line 64

def initialize(index)
  raise ArgumentError, "The index has to be between 1 and 5" unless (1..5).include?(index.to_i)
  super('_deleteCustomVar', index.to_i)
end