Class: LeanTesting::PlatformBrowserVersionsHandler

Inherits:
EntityHandler
  • Object
show all
Defined in:
lib/Handler/Platform/PlatformBrowserVersionsHandler.rb

Instance Method Summary collapse

Methods inherited from EntityHandler

#create, #delete, #find, #update

Constructor Details

#initialize(origin, browserID) ⇒ PlatformBrowserVersionsHandler

Returns a new instance of PlatformBrowserVersionsHandler.



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

def initialize(origin, browserID)
	super(origin)

	@browserID = browserID
end

Instance Method Details

#all(filters = nil) ⇒ Object



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

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

	super

	request = APIRequest.new(@origin, '/v1/platform/browsers/' + @browserID.to_s() + '/versions', 'GET')
	EntityList.new(@origin, request, PlatformBrowserVersion, filters)
end