Class: Houston::Adapters::ErrorTracker::ErrbitAdapter::App
- Inherits:
-
Object
- Object
- Houston::Adapters::ErrorTracker::ErrbitAdapter::App
- Defined in:
- app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
Instance Attribute Summary collapse
-
#app_id ⇒ Object
readonly
Returns the value of attribute app_id.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
Instance Method Summary collapse
- #error_url(err) ⇒ Object
-
#initialize(connection, app_id) ⇒ App
constructor
A new instance of App.
- #open_problems(params = {}) ⇒ Object
- #problems_during(range) ⇒ Object
- #project_url ⇒ Object
- #resolve!(problem_id, params = {}) ⇒ Object
- #unresolve!(problem_id) ⇒ Object
Constructor Details
#initialize(connection, app_id) ⇒ App
Returns a new instance of App.
7 8 9 10 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 7 def initialize(connection, app_id) @connection = connection @app_id = app_id end |
Instance Attribute Details
#app_id ⇒ Object (readonly)
Returns the value of attribute app_id.
12 13 14 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 12 def app_id @app_id end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
12 13 14 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 12 def connection @connection end |
Instance Method Details
#error_url(err) ⇒ Object
19 20 21 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 19 def error_url(err) connection.error_url(app_id, err) end |
#open_problems(params = {}) ⇒ Object
28 29 30 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 28 def open_problems(params={}) connection.open_problems params.merge(app_id: app_id) end |
#problems_during(range) ⇒ Object
24 25 26 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 24 def problems_during(range) connection.problems_during(range, app_id: app_id) end |
#project_url ⇒ Object
15 16 17 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 15 def project_url connection.project_url(app_id) end |
#resolve!(problem_id, params = {}) ⇒ Object
32 33 34 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 32 def resolve!(problem_id, params={}) connection.resolve!(problem_id, params) end |
#unresolve!(problem_id) ⇒ Object
36 37 38 |
# File 'app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb', line 36 def unresolve!(problem_id) connection.unresolve!(problem_id) end |