Method: TrafficMansion::Tracker#initialize
- Defined in:
- lib/traffic_mansion/tracker.rb
#initialize(options = {}, endpoint = ENV["TRAFFIC_MANSION_ENDPOINT"], http_host = ENV["TRAFFIC_MANSION_HTTP_HOST"], log_requests = ENV["TRAFFIC_MANSION_LOG_REQUESTS"], log_to_file = ENV["TRAFFIC_MANSION_LOG_TO_FILE"]) ⇒ Tracker
Returns a new instance of Tracker.
5 6 7 8 9 10 11 |
# File 'lib/traffic_mansion/tracker.rb', line 5 def initialize = {}, endpoint = ENV["TRAFFIC_MANSION_ENDPOINT"], http_host = ENV["TRAFFIC_MANSION_HTTP_HOST"], log_requests = ENV["TRAFFIC_MANSION_LOG_REQUESTS"], log_to_file = ENV["TRAFFIC_MANSION_LOG_TO_FILE"] @endpoint = endpoint @http_host = http_host @log_requests = log_requests @log_to_file = log_to_file set_data end |