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
Link to this function
api_base_url() View Source
Returns the API base URL
Examples
iex> Hunter.Config.api_base_url()
"https://mastodon.social"
Link to this function
home() View Source
Returns the Hunter home directory
Examples
iex> Path.extname(Hunter.Config.home())
".hunter"
Link to this function
http_options() View Source
Returns HTTP options
iex> Hunter.Config.http_options()
[]
Link to this function
hunter_api() View Source
Returns adapter module to do run API calls.
Examples
iex> Hunter.Config.hunter_api()
Hunter.ApiMock