Class: LeanTesting::PlatformTypeDevicesHandler

Inherits:
EntityHandler show all
Defined in:
lib/Handler/Platform/PlatformTypeDevicesHandler.rb

Instance Method Summary collapse

Methods inherited from EntityHandler

#create, #delete, #find, #update

Constructor Details

#initialize(origin, typeID) ⇒ PlatformTypeDevicesHandler

Returns a new instance of PlatformTypeDevicesHandler.



4
5
6
7
8
# File 'lib/Handler/Platform/PlatformTypeDevicesHandler.rb', line 4

def initialize(origin, typeID)
  super(origin)

  @typeID = typeID
end

Instance Method Details

#all(filters = nil) ⇒ Object



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

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

  super

  request = APIRequest.new(@origin, '/v1/platform/types/' + @typeID.to_s() + '/devices', 'GET')
  EntityList.new(@origin, request, PlatformDevice, filters)
end