ExOpenTravel v0.3.0 ExOpenTravel.Response.Converter behaviour View Source

Link to this section Summary

Link to this section Functions

Link to this function

convert(e, mapping)

View Source
convert({atom(), String.t(), ExOpenTravel.Meta.t()}, map()) ::
  {:ok, map(), ExOpenTravel.Meta.t()} | {:error, atom(), ExOpenTravel.Meta.t()}

Link to this section Callbacks

Link to this callback

convert_body({})

View Source
convert_body({atom(), any(), any()}) ::
  {:ok, map(), any()} | {:error, any(), any()}
Link to this callback

get_mapping_for_payload()

View Source
get_mapping_for_payload() :: SweetXpath.t()