class RigorLogger::Event

Attributes

client[R]
name[R]
options[R]

Public Class Methods

new(name, options={}) click to toggle source
Calls superclass method RigorLogger::Base::new
# File lib/rigor_logger/event.rb, line 12
def initialize name, options={}
  @client = Dogapi::Client.new(RigorLogger.config[:api_key])
  super
end
submit(name, options={}) click to toggle source

convenience methods

# File lib/rigor_logger/event.rb, line 6
def self.submit name, options={}
  new(name, options).submit
end

Public Instance Methods

submit() click to toggle source
# File lib/rigor_logger/event.rb, line 17
def submit
  @client.emit_event @name, @options
end