Class: LeanTesting::BugCommentsHandler

Inherits:
EntityHandler show all
Defined in:
lib/Handler/Bug/BugCommentsHandler.rb

Instance Method Summary collapse

Methods inherited from EntityHandler

#create, #delete, #find, #update

Constructor Details

#initialize(origin, bugID) ⇒ BugCommentsHandler

Returns a new instance of BugCommentsHandler.



4
5
6
7
8
# File 'lib/Handler/Bug/BugCommentsHandler.rb', line 4

def initialize(origin, bugID)
  super(origin)

  @bugID = bugID
end

Instance Method Details

#all(filters = nil) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/Handler/Bug/BugCommentsHandler.rb', line 10

def all(filters = nil)
  if !filters
    filters = {}
  end

  super

  request = APIRequest.new(@origin, '/v1/bugs/' + @bugID.to_s() + '/comments', 'GET')
  EntityList.new(@origin, request, BugComment, filters)
end