Sha256: 90a7f748c25c85ca791b8757972ea019bdb4e9feeeb8afe0f9b5e5c0653eead8

Contents?: true

Size: 1 KB

Versions: 17

Compression:

Stored size: 1 KB

Contents

module Houston
  module Adapters
    module ErrorTracker
      class ErrbitAdapter
        class App

          def initialize(connection, app_id)
            @connection = connection
            @app_id = app_id
          end

          attr_reader :connection, :app_id


          def project_url
            connection.project_url(app_id)
          end

          def error_url(err)
            connection.error_url(app_id, err)
          end


          def problems_during(range)
            connection.problems_during(range, app_id: app_id)
          end

          def open_problems(params={})
            connection.open_problems params.merge(app_id: app_id)
          end

          def resolve!(problem_id, params={})
            connection.resolve!(problem_id, params)
          end

          def unresolve!(problem_id)
            connection.unresolve!(problem_id)
          end


          delegate :merge_problems, :unmerge_problems, :delete_problems, to: :connection


        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
houston-core-0.8.0.pre app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.7.0 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.7.0.beta4 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.7.0.beta3 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.7.0.beta2 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.7.0.beta app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.6.3 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.6.2 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.6.1 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.6.0 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.5.6 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.5.5 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.5.4 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.5.3 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.5.2 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.5.1 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb
houston-core-0.5.0 app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb