Class: LeanTesting::AttachmentsHandler

Inherits:
EntityHandler show all
Defined in:
lib/Handler/Attachment/AttachmentsHandler.rb

Instance Method Summary collapse

Methods inherited from EntityHandler

#all, #create, #initialize, #update

Constructor Details

This class inherits a constructor from LeanTesting::EntityHandler

Instance Method Details

#delete(id) ⇒ Object



11
12
13
14
15
16
# File 'lib/Handler/Attachment/AttachmentsHandler.rb', line 11

def delete(id)
	super

	req = APIRequest.new(@origin, '/v1/attachments/' + id.to_s(), 'DELETE')
	req.exec
end

#find(id) ⇒ Object



4
5
6
7
8
9
# File 'lib/Handler/Attachment/AttachmentsHandler.rb', line 4

def find(id)
	super

	req = APIRequest.new(@origin, '/v1/attachments/' + id.to_s(), 'GET')
	BugAttachment.new(@origin, req.exec)
end