Orbit/lib/delay_impressionist_request.rb

18 lines
426 B
Ruby
Raw Permalink Normal View History

2013-07-18 04:03:18 +00:00
class DelayImpressionistRequest
attr_accessor :session_options,:remote_ip,:referer,:user_agent
def initialize(request=nil)
if request
self.session_options=request.session_options
self.remote_ip=request.remote_ip
self.referer=request.referer
self.user_agent=request.user_agent
end
end
def restore(args)
args.each do |key,value|
self.send("#{key}=", value)
end
end
end