class Checklister::Gitlab::Issue
Public Class Methods
new(client)
click to toggle source
# File lib/checklister/gitlab/issue.rb, line 4 def initialize(client) @client = client end
Public Instance Methods
create(project_id, attributes = {})
click to toggle source
# File lib/checklister/gitlab/issue.rb, line 8 def create(project_id, attributes = {}) issue = Checklister::Issue.new(attributes.merge(project_id: project_id)) @client.create_issue(issue.project_id, issue.title, description: issue.description) end