Last active
September 23, 2015 14:59
-
-
Save Crisfole/a7cb860e0e95760cf918 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass | |
attr_reader :a:, :b | |
def initialize(a, b) | |
@a, @b = a,b | |
end | |
def process | |
rescue => e | |
rollbar.error(e) | |
end | |
def rollbar | |
@rollbar ||= Rollbar.scope({custom: { a: a, b: a } }) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment