lib/em-campfire.rb in em-campfire-1.1.3 vs lib/em-campfire.rb in em-campfire-1.2.3

- 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, :ignore_timestamps + attr_accessor :logger, :verbose, :subdomain, :api_key, :ignore_timestamps, :user_agent include Connection include Rooms include Users include Messages @@ -58,8 +58,12 @@ logger.level = Logger::DEBUG if is_verbose end def ignore_timestamps? self.ignore_timestamps || false + end + + def user_agent + @user_agent || "em-campfire" end end # Campfire end # EventMachine