Refactor objects inheritance to simplify API usage
Created by: vtexier
The inheritance pattern use in the API can be simplified.
For example, in a request like :
bma.node.Summary(BMAEndpoint.from_inline(BMA_ENDPOINT).conn_handler()).get(AIOHTTP_SESSION)
- The endpoint and the aiohttp session could be passed together in one parameter as a connexion object.
- The get() part can be removed.
conn_handler = ConnexionHandler(AIOHTTP_SESSION, BMAEndpoint.from_inline(BMA_ENDPOINT))
bma.node.Summary(conn_handler)