Module: AirbrakeAPI
- Extended by:
- AirbrakeAPI
- Included in:
- AirbrakeAPI
- Defined in:
- lib/airbrake-api.rb,
lib/airbrake-api/error.rb,
lib/airbrake-api/client.rb,
lib/airbrake-api/notice.rb,
lib/airbrake-api/project.rb,
lib/airbrake-api/version.rb
Defined Under Namespace
Classes: AirbrakeError, Base, Error, Notice, Project
Constant Summary collapse
- VERSION =
'3.2.1'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#secure ⇒ Object
Returns the value of attribute secure.
Instance Method Summary collapse
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
6 7 8 |
# File 'lib/airbrake-api.rb', line 6 def account @account end |
#auth_token ⇒ Object
Returns the value of attribute auth_token.
6 7 8 |
# File 'lib/airbrake-api.rb', line 6 def auth_token @auth_token end |
#secure ⇒ Object
Returns the value of attribute secure.
6 7 8 |
# File 'lib/airbrake-api.rb', line 6 def secure @secure end |
Instance Method Details
#account_path ⇒ Object
16 17 18 |
# File 'lib/airbrake-api.rb', line 16 def account_path "#{protocol}://#{@account}.airbrakeapp.com" end |
#configure(options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/airbrake-api.rb', line 10 def configure(={}) @account = [:account] if .has_key?(:account) @auth_token = [:auth_token] if .has_key?(:auth_token) @secure = [:secure] if .has_key?(:secure) end |
#protocol ⇒ Object
20 21 22 |
# File 'lib/airbrake-api.rb', line 20 def protocol secure ? "https" : "http" end |