Class: AirbrakeSymbolicate::Airbrake
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- AirbrakeSymbolicate::Airbrake
- Defined in:
- lib/airbrake_symbolicate.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.account=(a) ⇒ Object
68 69 70 71 |
# File 'lib/airbrake_symbolicate.rb', line 68 def account=(a) self.site = "https://#{a}.airbrake.io/" if a self.format = ActiveResource::Formats::XmlFormat end |
.append_auth_token_to_params(*arguments) ⇒ Object
78 79 80 81 82 83 84 85 86 |
# File 'lib/airbrake_symbolicate.rb', line 78 def append_auth_token_to_params(*arguments) raise RuntimeError.new("Airbrake.auth_token must be set!") if !auth_token opts = arguments.last.is_a?(Hash) ? arguments.pop : {} opts = opts.has_key?(:params) ? opts : opts.merge(:params => {}) opts[:params] = opts[:params].merge(:auth_token => auth_token) arguments << opts arguments end |
.find(*arguments) ⇒ Object
73 74 75 76 |
# File 'lib/airbrake_symbolicate.rb', line 73 def find(*arguments) arguments = append_auth_token_to_params(*arguments) super(*arguments) end |