Method: Batbugger::Sender#initialize

Defined in:
lib/batbugger/sender.rb

#initialize(options = {}) ⇒ Sender

Returns a new instance of Sender.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/batbugger/sender.rb', line 13

def initialize(options = {})
  [ :api_key,
    :proxy_host,
    :proxy_port,
    :proxy_user,
    :proxy_pass,
    :protocol,
    :host,
    :port,
    :secure,
    :use_system_ssl_cert_chain,
    :http_open_timeout,
    :http_read_timeout
  ].each do |option|
    instance_variable_set("@#{option}", options[option])
  end
end