Skip to content

Instantly share code, notes, and snippets.

@Crisfole
Last active September 23, 2015 14:59
Show Gist options
  • Save Crisfole/a7cb860e0e95760cf918 to your computer and use it in GitHub Desktop.
Save Crisfole/a7cb860e0e95760cf918 to your computer and use it in GitHub Desktop.
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