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

Instance Method Details

#all(filters = nil) ⇒ Object



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

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



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

def find(id)
	super

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