Packages

A thin RingCentral API Wrapper in Elixir

Current section

Files

Jump to
ringcentral lib ring_central response.ex
Raw

lib/ring_central/response.ex

defmodule RingCentral.Response do
@moduledoc """
The struct representing the response from API.
"""
@enforce_keys [:body, :headers, :status]
defstruct data: nil, body: nil, headers: [], status: nil
@type t :: %__MODULE__{
data: map(),
body: binary(),
headers: RingCentral.HTTPClient.http_headers(),
status: non_neg_integer()
}
end