class LeanTesting::PlatformTypesHandler

Public Instance Methods

all(filters = nil) click to toggle source
Calls superclass method LeanTesting::EntityHandler#all
# 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) click to toggle source
Calls superclass method LeanTesting::EntityHandler#find
# 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