Class: LeanTesting::Bug

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

Instance Attribute Summary collapse

Attributes inherited from Entity

#data

Instance Method Summary collapse

Constructor Details

#initialize(origin, data) ⇒ Bug

Returns a new instance of Bug.



5
6
7
8
9
10
# File 'lib/Entity/Bug/Bug.rb', line 5

def initialize(origin, data)
	super

	@comments		= BugCommentsHandler.new(origin, data['id'])
	@attachments	= BugAttachmentsHandler.new(origin, data['id'])
end

Instance Attribute Details

#attachments ⇒ Object (readonly)

Returns the value of attribute attachments.



3
4
5
# File 'lib/Entity/Bug/Bug.rb', line 3

def attachments
  @attachments
end

#comments ⇒ Object (readonly)

Returns the value of attribute comments.



3
4
5
# File 'lib/Entity/Bug/Bug.rb', line 3

def comments
  @comments
end