gasrate v0.2.1 Gasrate View Source

Documentation for Gasrate.

Link to this section Summary

Functions

Fetch National Avg

Fetch National Avg

Link to this section Functions

Fetch Rates.

Examples

iex> Gasrate.fetch_avg_rates("AZ")
%{diesel: 2.89, mid: 2.669, premium: 2.877, regular: 2.447}

Fetch Rates.

Examples

iex> Gasrate.fetch_avg_rates!("AZ")
{:ok, %{diesel: 2.89, mid: 2.669, premium: 2.877, regular: 2.447}}

Fetch National Avg.

Examples

iex> Gasrate.fetch_national_avg
{:ok, 2.273}

Fetch National Avg.

Examples

iex> Gasrate.fetch_national_avg!
2.273