Forex.Feed.Parser behaviour (Forex v0.2.1)

View Source

This module defines the behaviour of the parser that will be used to parse the XML response from the European Central Bank (ECB).

Summary

Callbacks

Parse the XML response body from the European Central Bank (ECB).

Types

rate()

@type rate() :: %{currency: String.t(), rate: String.t()}

rate_map()

@type rate_map() :: %{rates: [rate()], time: String.t()}

Callbacks

parse_rates(binary)

@callback parse_rates(binary()) :: [rate()]

Parse the XML response body from the European Central Bank (ECB).

Functions

parse_rates(body)

parser_mod()