Class: Sentry::ApiUrls

Inherits:
Object
  • Object
show all
Defined in:
lib/sentry/api_urls.rb

Instance Method Summary collapse

Constructor Details

#initialize(url_base) ⇒ ApiUrls

Returns a new instance of ApiUrls.


5
6
7
# File 'lib/sentry/api_urls.rb', line 5

def initialize(url_base)
  @uri = URI(url_base).freeze
end

Instance Method Details

#issue_latest_event_url(issue_id) ⇒ Object


21
22
23
# File 'lib/sentry/api_urls.rb', line 21

def issue_latest_event_url(issue_id)
  with_path("/api/0/issues/#{escape(issue_id)}/events/latest/")
end

#issue_url(issue_id) ⇒ Object


13
14
15
# File 'lib/sentry/api_urls.rb', line 13

def issue_url(issue_id)
  with_path("/api/0/issues/#{escape(issue_id)}/")
end

#issues_urlObject


9
10
11
# File 'lib/sentry/api_urls.rb', line 9

def issues_url
  with_path(File.join(@uri.path, '/issues/'))
end

#projects_urlObject


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

def projects_url
  with_path('/api/0/projects/')
end