class Checklister::Issue
Attributes
description[R]
description (required) - The description of an issue
project_id[R]
project_id
(required) - The ID of a project
title[R]
title (required) - The title of an issue
Public Class Methods
new(attributes = {})
click to toggle source
Initialize an instance of Issue
@param attributes [Hash] list of key/values @return [Object] the issue object
# File lib/checklister/issue.rb, line 15 def initialize(attributes = {}) @project_id = attributes.fetch(:project_id) { raise ArgumentError, "Missing project_id" } @title = attributes.fetch(:title) { raise ArgumentError, "Missing title" } @description = attributes.fetch(:body) { raise ArgumentError, "Missing description" } end