class OmniBot::Helpers

Public Class Methods

amqp_exchange_name() click to toggle source
# File lib/omnibot/helpers.rb, line 63
def self.amqp_exchange_name
  'omnibot-exchange'
end
amqp_routing_key() click to toggle source
# File lib/omnibot/helpers.rb, line 67
def self.amqp_routing_key
  'omnibot-routing'
end
backtrace(e) click to toggle source
# File lib/omnibot/helpers.rb, line 55
def self.backtrace(e)
  e.respond_to?(:backtrace) && e.backtrace ? e.backtrace.join("\n\t") : ''
end
same_day?(t1, t2) click to toggle source
# File lib/omnibot/helpers.rb, line 59
def self.same_day?(t1, t2)
  t1.year == t2.year && t1.month == t2.month && t1.day == t2.day
end