Class: Crashdesk::Configuration
- Inherits:
-
Object
- Object
- Crashdesk::Configuration
- Defined in:
- lib/crashdesk/configuration.rb
Instance Attribute Summary collapse
-
#app_key ⇒ Object
Basic connection settings.
-
#environment_name ⇒ Object
Framework is string representing framework.
-
#host ⇒ Object
HTTP.
-
#logger ⇒ Object
Where to log Crashdesk output?.
-
#port ⇒ Object
HTTP.
-
#project_root ⇒ Object
Framework is string representing framework.
-
#proxy_host ⇒ Object
Proxy server.
-
#proxy_pass ⇒ Object
Proxy server.
-
#proxy_port ⇒ Object
Proxy server.
-
#proxy_user ⇒ Object
Proxy server.
-
#reporters ⇒ Object
Returns the value of attribute reporters.
Instance Method Summary collapse
-
#[](option) ⇒ Object
Hash like access.
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #protocol ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
Basic connection settings
6 7 8 |
# File 'lib/crashdesk/configuration.rb', line 6 def app_key @app_key end |
#environment_name ⇒ Object
Framework is string representing framework
25 26 27 |
# File 'lib/crashdesk/configuration.rb', line 25 def environment_name @environment_name end |
#host ⇒ Object
HTTP
12 13 14 |
# File 'lib/crashdesk/configuration.rb', line 12 def host @host end |
#logger ⇒ Object
Where to log Crashdesk output?
15 16 17 |
# File 'lib/crashdesk/configuration.rb', line 15 def logger @logger end |
#port ⇒ Object
HTTP
12 13 14 |
# File 'lib/crashdesk/configuration.rb', line 12 def port @port end |
#project_root ⇒ Object
Framework is string representing framework
25 26 27 |
# File 'lib/crashdesk/configuration.rb', line 25 def project_root @project_root end |
#proxy_host ⇒ Object
Proxy server
9 10 11 |
# File 'lib/crashdesk/configuration.rb', line 9 def proxy_host @proxy_host end |
#proxy_pass ⇒ Object
Proxy server
9 10 11 |
# File 'lib/crashdesk/configuration.rb', line 9 def proxy_pass @proxy_pass end |
#proxy_port ⇒ Object
Proxy server
9 10 11 |
# File 'lib/crashdesk/configuration.rb', line 9 def proxy_port @proxy_port end |
#proxy_user ⇒ Object
Proxy server
9 10 11 |
# File 'lib/crashdesk/configuration.rb', line 9 def proxy_user @proxy_user end |
#reporters ⇒ Object
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 |
#protocol ⇒ Object
42 43 44 |
# File 'lib/crashdesk/configuration.rb', line 42 def protocol 'http' end |