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 24 def self.all(client, options = {}) response = client.get(collection_path(client)) json = parse_json(response.body) json = json['list'] json.map do |attrs| self.new(client, {:attrs => attrs}.merge(options)) end end
collection_path(client, prefix = '/')
click to toggle source
# File lib/jira/resource/applinks.rb, line 20 def self.collection_path(client, prefix = '/') self.full_url(client) + prefix + self.endpoint_name end
endpoint_name()
click to toggle source
# File lib/jira/resource/applinks.rb, line 12 def self.endpoint_name 'listApplicationlinks' end
full_url(client)
click to toggle source
# File lib/jira/resource/applinks.rb, line 16 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 33 def self.manifest(client) url = self.full_url(client) + '/manifest' response = client.get(url) json = parse_json(response.body) JIRA::Base.new(client, {:attrs => json}) end