hunter v0.5.1 Hunter.Config View Source

Hunter configuration.

Link to this section Summary

Functions

Returns the API base URL

Returns the Hunter home directory

Returns HTTP options

Returns adapter module to do run API calls

Link to this section Functions

Returns the API base URL

Examples

iex> Hunter.Config.api_base_url()
"https://mastodon.social"

Returns the Hunter home directory

Examples

iex> Path.extname(Hunter.Config.home())
".hunter"

Returns HTTP options

iex> Hunter.Config.http_options()
[]

Returns adapter module to do run API calls.

Examples

iex> Hunter.Config.hunter_api()
Hunter.ApiMock