class Optimizely::Event

Attributes

headers[R]
http_verb[R]

Representation of an event which can be sent to the Optimizely logging endpoint.

params[R]
url[R]

Public Class Methods

new(http_verb, url, params, headers) click to toggle source
# File lib/optimizely/event_builder.rb, line 35
def initialize(http_verb, url, params, headers)
  @http_verb = http_verb
  @url = url
  @params = params
  @headers = headers
end

Public Instance Methods

==(other) click to toggle source

Override equality operator to make two events with the same contents equal for testing purposes

# File lib/optimizely/event_builder.rb, line 43
def ==(other)
  @http_verb == other.http_verb && @url == other.url && @params == other.params && @headers == other.headers
end