Class: ErrorTracking::SentryClient

Inherits:
Object
  • Object
show all
Includes:
Event, Issue, IssueLink, Projects, Repo
Defined in:
lib/error_tracking/sentry_client.rb,
lib/error_tracking/sentry_client/repo.rb,
lib/error_tracking/sentry_client/event.rb,
lib/error_tracking/sentry_client/issue.rb,
lib/error_tracking/sentry_client/token.rb,
lib/error_tracking/sentry_client/api_urls.rb,
lib/error_tracking/sentry_client/projects.rb,
lib/error_tracking/sentry_client/issue_link.rb,
lib/error_tracking/sentry_client/pagination_parser.rb

Defined Under Namespace

Modules: Event, Issue, IssueLink, PaginationParser, Projects, Repo Classes: ApiUrls, Token

Constant Summary collapse

Error =
Class.new(StandardError)
MissingKeysError =
Class.new(StandardError)
InvalidFieldValueError =
Class.new(StandardError)
ResponseInvalidSizeError =
Class.new(StandardError)
RESPONSE_SIZE_LIMIT =
1.megabyte

Constants included from Issue

Issue::BadRequestError, Issue::SENTRY_API_SORT_VALUE_MAP

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from IssueLink

#create_issue_link

Methods included from Repo

#repos

Methods included from Issue

#issue_details, #list_issues, #update_issue

Methods included from Projects

#projects

Methods included from Event

#issue_latest_event

Constructor Details

#initialize(api_url, token) ⇒ SentryClient

Returns a new instance of SentryClient.



20
21
22
23
# File 'lib/error_tracking/sentry_client.rb', line 20

def initialize(api_url, token)
  @url = api_url
  @token = token
end

Instance Attribute Details

#tokenObject

Returns the value of attribute token.



18
19
20
# File 'lib/error_tracking/sentry_client.rb', line 18

def token
  @token
end

#urlObject

Returns the value of attribute url.



18
19
20
# File 'lib/error_tracking/sentry_client.rb', line 18

def url
  @url
end