Class: 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.



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

def initialize(origin, typeID)
	super(origin)

	@typeID = typeID
end

Instance Method Details

#all(filters = nil) ⇒ Object



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

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