Class: Sentry::Client

Inherits:
Object
  • Object
show all
Includes:
Event, Issue, IssueLink, Projects, Repo
Defined in:
lib/sentry/client.rb,
lib/sentry/client/repo.rb,
lib/sentry/client/event.rb,
lib/sentry/client/issue.rb,
lib/sentry/client/projects.rb,
lib/sentry/client/issue_link.rb

Defined Under Namespace

Modules: Event, Issue, IssueLink, Projects, Repo

Constant Summary collapse

Error =
Class.new(StandardError)
MissingKeysError =
Class.new(StandardError)

Constants included from Issue

Issue::BadRequestError, Issue::ResponseInvalidSizeError, 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) ⇒ Client

Returns a new instance of Client.


16
17
18
19
# File 'lib/sentry/client.rb', line 16

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

Instance Attribute Details

#tokenObject

Returns the value of attribute token


14
15
16
# File 'lib/sentry/client.rb', line 14

def token
  @token
end

#urlObject

Returns the value of attribute url


14
15
16
# File 'lib/sentry/client.rb', line 14

def url
  @url
end