Class: Crashdesk::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/crashdesk/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



29
30
31
# File 'lib/crashdesk/configuration.rb', line 29

def initialize
  @host = 'beta.crashde.sk'
end

Instance Attribute Details

#app_keyObject

Basic connection settings



6
7
8
# File 'lib/crashdesk/configuration.rb', line 6

def app_key
  @app_key
end

#environment_nameObject

Framework is string representing framework

Examples:

Crashdesk.configure do |config|
  config.app_key = 'YOUR APP KEY HERE'
  config.project_root = ::Rails.root
  config.logger = ::Rails.logger
end


25
26
27
# File 'lib/crashdesk/configuration.rb', line 25

def environment_name
  @environment_name
end

#hostObject

HTTP



12
13
14
# File 'lib/crashdesk/configuration.rb', line 12

def host
  @host
end

#loggerObject

Where to log Crashdesk output?



15
16
17
# File 'lib/crashdesk/configuration.rb', line 15

def logger
  @logger
end

#portObject

HTTP



12
13
14
# File 'lib/crashdesk/configuration.rb', line 12

def port
  @port
end

#project_rootObject

Framework is string representing framework

Examples:

Crashdesk.configure do |config|
  config.app_key = 'YOUR APP KEY HERE'
  config.project_root = ::Rails.root
  config.logger = ::Rails.logger
end


25
26
27
# File 'lib/crashdesk/configuration.rb', line 25

def project_root
  @project_root
end

#proxy_hostObject

Proxy server



9
10
11
# File 'lib/crashdesk/configuration.rb', line 9

def proxy_host
  @proxy_host
end

#proxy_passObject

Proxy server



9
10
11
# File 'lib/crashdesk/configuration.rb', line 9

def proxy_pass
  @proxy_pass
end

#proxy_portObject

Proxy server



9
10
11
# File 'lib/crashdesk/configuration.rb', line 9

def proxy_port
  @proxy_port
end

#proxy_userObject

Proxy server



9
10
11
# File 'lib/crashdesk/configuration.rb', line 9

def proxy_user
  @proxy_user
end

#reportersObject

Returns the value of attribute reporters.



27
28
29
# File 'lib/crashdesk/configuration.rb', line 27

def reporters
  @reporters
end

Instance Method Details

#[](option) ⇒ Object

Hash like access



34
35
36
# File 'lib/crashdesk/configuration.rb', line 34

def [](option)
  send(option)
end

#protocolObject



42
43
44
# File 'lib/crashdesk/configuration.rb', line 42

def protocol
  'http'
end