lib/em-campfire.rb in em-campfire-1.0.0 vs lib/em-campfire.rb in em-campfire-1.1.0
- old
+ new
@@ -10,11 +10,11 @@
require "em-campfire/messages"
require "em-campfire/cache"
module EventMachine
class Campfire
- attr_accessor :logger, :verbose, :subdomain, :api_key
+ attr_accessor :logger, :verbose, :subdomain, :api_key, :ignore_timestamps
include Connection
include Rooms
include Users
include Messages
@@ -53,8 +53,12 @@
end
def verbose=(is_verbose)
@verbose = is_verbose
logger.level = Logger::DEBUG if is_verbose
+ end
+
+ def ignore_timestamps?
+ self.ignore_timestamps || false
end
end # Campfire
end # EventMachine