class JIRA::Resource::ApplicationLink
Constants
- REST_BASE_PATH
Public Class Methods
all(client, options = {})
click to toggle source
# File lib/jira/resource/applinks.rb, line 22 def self.all(client, options = {}) response = client.get(collection_path(client)) json = parse_json(response.body) json = json['list'] json.map do |attrs| new(client, { attrs: attrs }.merge(options)) end end
collection_path(client, prefix = '/')
click to toggle source
# File lib/jira/resource/applinks.rb, line 18 def self.collection_path(client, prefix = '/') full_url(client) + prefix + endpoint_name end
endpoint_name()
click to toggle source
# File lib/jira/resource/applinks.rb, line 10 def self.endpoint_name 'listApplicationlinks' end
full_url(client)
click to toggle source
# File lib/jira/resource/applinks.rb, line 14 def self.full_url(client) client.options[:context_path] + REST_BASE_PATH end
manifest(client)
click to toggle source
# File lib/jira/resource/applinks.rb, line 31 def self.manifest(client) url = full_url(client) + '/manifest' response = client.get(url) json = parse_json(response.body) JIRA::Base.new(client, attrs: json) end