Class: CTodo::Issue

Inherits:
Object
  • Object
show all
Defined in:
lib/ctodo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, tags)
	@title = title
	@source = source
	@assignee = assignee
	@tags = tags.is_a?(Array) ? tags : [tags]
end

Instance Attribute Details

#assigneeObject (readonly)

Returns the value of attribute assignee.



51
52
53
# File 'lib/ctodo.rb', line 51

def assignee
  @assignee
end

#sourceObject (readonly)

Returns the value of attribute source.



51
52
53
# File 'lib/ctodo.rb', line 51

def source
  @source
end

#tagsObject (readonly)

Returns the value of attribute tags.



51
52
53
# File 'lib/ctodo.rb', line 51

def tags
  @tags
end

#titleObject (readonly)

Returns the value of attribute title.



51
52
53
# File 'lib/ctodo.rb', line 51

def title
  @title
end