module Octogate

Constants

REC_LIMIT
VERSION

Public Class Methods

add_received(event) click to toggle source
# File lib/octogate.rb, line 36
def add_received(event)
  received.pop if received.length > REC_LIMIT
  received.unshift event
end
add_sent(target) click to toggle source
# File lib/octogate.rb, line 31
def add_sent(target)
  sent.pop if sent.length > REC_LIMIT
  sent.unshift target
end
config() click to toggle source
# File lib/octogate.rb, line 15
def config
  @config ||= Configuration.instance
end
find_target(key) click to toggle source
# File lib/octogate.rb, line 19
def find_target(key)
  @config.targets.fetch(key)
end
received() click to toggle source
# File lib/octogate.rb, line 27
def received
  @received ||= []
end
sent() click to toggle source
# File lib/octogate.rb, line 23
def sent
  @sent ||= []
end