Class: SentryIssueFinder
- Inherits:
-
Object
- Object
- SentryIssueFinder
- Defined in:
- app/finders/sentry_issue_finder.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
Returns the value of attribute current_user.
-
#project ⇒ Object
Returns the value of attribute project.
Instance Method Summary collapse
- #execute(identifier) ⇒ Object
-
#initialize(project, current_user: nil) ⇒ SentryIssueFinder
constructor
A new instance of SentryIssueFinder.
Constructor Details
#initialize(project, current_user: nil) ⇒ SentryIssueFinder
Returns a new instance of SentryIssueFinder.
6 7 8 9 |
# File 'app/finders/sentry_issue_finder.rb', line 6 def initialize(project, current_user: nil) @project = project @current_user = current_user end |
Instance Attribute Details
#current_user ⇒ Object
Returns the value of attribute current_user.
4 5 6 |
# File 'app/finders/sentry_issue_finder.rb', line 4 def current_user @current_user end |
#project ⇒ Object
Returns the value of attribute project.
4 5 6 |
# File 'app/finders/sentry_issue_finder.rb', line 4 def project @project end |
Instance Method Details
#execute(identifier) ⇒ Object
11 12 13 14 15 16 |
# File 'app/finders/sentry_issue_finder.rb', line 11 def execute(identifier) return unless SentryIssue .for_project_and_identifier(project, identifier) end |