Class: LeanTesting::PlatformOSVersionsHandler

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

Instance Method Summary collapse

Methods inherited from EntityHandler

#create, #delete, #find, #update

Constructor Details

#initialize(origin, osID) ⇒ PlatformOSVersionsHandler

Returns a new instance of PlatformOSVersionsHandler.



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

def initialize(origin, osID)
	super(origin)

	@osID = osID
end

Instance Method Details

#all(filters = nil) ⇒ Object



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

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

	super

	request = APIRequest.new(@origin, '/v1/platform/os/' + @osID.to_s() + '/versions', 'GET')
	EntityList.new(@origin, request, PlatformOSVersion, filters)
end