Class: Checklister::Issue
- Inherits:
-
Object
- Object
- Checklister::Issue
- Defined in:
- lib/checklister/issue.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
- project_id (required) - The ID of a project - title (required) - The title of an issue - description (required) - The description of an issue.
-
#project_id ⇒ Object
readonly
- project_id (required) - The ID of a project - title (required) - The title of an issue - description (required) - The description of an issue.
-
#title ⇒ Object
readonly
- project_id (required) - The ID of a project - title (required) - The title of an issue - description (required) - The description of an issue.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Issue
constructor
A new instance of Issue.
Constructor Details
#initialize(attributes = {}) ⇒ Issue
Returns a new instance of Issue.
8 9 10 11 12 |
# File 'lib/checklister/issue.rb', line 8 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 |
Instance Attribute Details
#description ⇒ Object (readonly)
- project_id (required) - The ID of a project
- title (required) - The title of an issue
- description (required) - The description of an issue
6 7 8 |
# File 'lib/checklister/issue.rb', line 6 def description @description end |
#project_id ⇒ Object (readonly)
- project_id (required) - The ID of a project
- title (required) - The title of an issue
- description (required) - The description of an issue
6 7 8 |
# File 'lib/checklister/issue.rb', line 6 def project_id @project_id end |
#title ⇒ Object (readonly)
- project_id (required) - The ID of a project
- title (required) - The title of an issue
- description (required) - The description of an issue
6 7 8 |
# File 'lib/checklister/issue.rb', line 6 def title @title end |