Class: LeanTesting::PlatformTypesHandler

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

Instance Method Summary collapse

Methods inherited from EntityHandler

#create, #delete, #initialize, #update

Constructor Details

This class inherits a constructor from LeanTesting::EntityHandler

Instance Method Details

#all(filters = nil) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/Handler/Platform/PlatformTypesHandler.rb', line 4

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

	super

	request = APIRequest.new(@origin, '/v1/platform/types', 'GET')
	EntityList.new(@origin, request, PlatformType, filters)
end

#find(id) ⇒ Object



15
16
17
18
19
20
# File 'lib/Handler/Platform/PlatformTypesHandler.rb', line 15

def find(id)
	super

	req = APIRequest.new(@origin, '/v1/platform/types/' + id.to_s(), 'GET')
	PlatformType.new(@origin, req.exec)
end