Module: JiraRemotelinker::REST
- Defined in:
- lib/jira-remotelinker/rest.rb
Defined Under Namespace
Classes: AbstractV2
Class Method Summary collapse
-
.factory(url, username, password, name, uuid, type = 'com.atlassian.jira') ⇒ Object
Create a concrete class that talks to a particular JIRA instance using the V2 API.
Class Method Details
.factory(url, username, password, name, uuid, type = 'com.atlassian.jira') ⇒ Object
Create a concrete class that talks to a particular JIRA instance using the V2 API.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/jira-remotelinker/rest.rb', line 50 def factory(url, username, password, name, uuid, type = 'com.atlassian.jira') Class.new(AbstractV2) do |klass| klass.base_uri(File.join(url, AbstractV2::API_PATH)) klass.basic_auth(username, password) # These are used during Remote Link creation and allow JIRA instances # to pull issue data from each other and ensure that users are properly # authorized to view such data. klass.jira_name = name klass.jira_uuid = uuid klass.jira_type = type klass.jira_url = url end end |