gamebench_api_client.api.requests_retriever.builder.method package

Submodules

gamebench_api_client.api.requests_retriever.builder.method.method_creator module

class gamebench_api_client.api.requests_retriever.builder.method.method_creator.Method(**request_parameters)[source]

Bases: object

Class that determines the request method.

__init__(**request_parameters)[source]

Create the instance variable for given dictionary.

Parameters:request_parameters – Dictionary containing information needed to set the method.
get_method()[source]

Determines request method.

If there is a metric (gpu, cpu, battery, etc.) the request will be set as “GET”, otherwise it is a “POST”.

is_metric_present()[source]

Determine if there is a metric present in the request parameters.

Module contents