Packages

A (WIP) Elixir wrapper for the Digital Ocean API v2.

Current section

Files

Jump to
digitalocean lib digitalocean account.ex
Raw

lib/digitalocean/account.ex

defmodule DigitalOcean.Account do
@moduledoc """
API methods for interacting with the `Account` module.
See the [Account Reference](https://developers.digitalocean.com/documentation/v2/#account).
"""
import DigitalOcean, only: [get: 1, body: 1, full: 1]
@doc """
Get information about the Account associated with the token.
## Example
iex> DigitalOcean.Account.show
"""
def show, do: get("account") |> full
@doc """
Similar to `show/0` but returns the response body only.
"""
def show!, do: show |> body
end