Class: CTodo::Issue
- Inherits:
-
Object
- Object
- CTodo::Issue
- Defined in:
- lib/ctodo.rb
Instance Attribute Summary collapse
-
#assignee ⇒ Object
readonly
Returns the value of attribute assignee.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, source, assignee, tags) ⇒ Issue
constructor
A new instance of Issue.
Constructor Details
#initialize(title, source, assignee, tags) ⇒ Issue
Returns a new instance of Issue.
53 54 55 56 57 58 |
# File 'lib/ctodo.rb', line 53 def initialize(title, source, assignee, ) @title = title @source = source @assignee = assignee @tags = .is_a?(Array) ? : [] end |
Instance Attribute Details
#assignee ⇒ Object (readonly)
Returns the value of attribute assignee.
51 52 53 |
# File 'lib/ctodo.rb', line 51 def assignee @assignee end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
51 52 53 |
# File 'lib/ctodo.rb', line 51 def source @source end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
51 52 53 |
# File 'lib/ctodo.rb', line 51 def @tags end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
51 52 53 |
# File 'lib/ctodo.rb', line 51 def title @title end |