Sha256: 6e26833b59ba2102490a8c1a1026d1c5a828a48e91a8253c891329d2142b586a
Contents?: true
Size: 718 Bytes
Versions: 4
Compression:
Stored size: 718 Bytes
Contents
# frozen_string_literal: true module Geet module Gitlab class Issue attr_reader :number, :title, :link def initialize(number, title, link) @number = number @title = title @link = link end def self.list(api_interface) api_path = "projects/#{api_interface.path_with_namespace(encoded: true)}/issues" response = api_interface.send_request(api_path, multipage: true) response.each_with_object([]) do |issue_data, result| number = issue_data.fetch('iid') title = issue_data.fetch('title') link = issue_data.fetch('web_url') result << new(number, title, link) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
geet-0.2.0 | lib/geet/gitlab/issue.rb |
geet-0.1.12 | lib/geet/gitlab/issue.rb |
geet-0.1.11 | lib/geet/gitlab/issue.rb |
geet-0.1.10 | lib/geet/gitlab/issue.rb |