Current section
Files
Jump to
Current section
Files
lib/digitalocean/region.ex
defmodule DigitalOcean.Region do
@moduledoc """
API methods for interacting with the `Region` module.
See the [Region Reference](https://developers.digitalocean.com/documentation/v2/#regions).
"""
import DigitalOcean, only: [get: 1, body: 1, full: 1]
@doc """
List all Regions.
"""
def list, do: get("regions") |> full
@doc """
Similar to `list/0` but returns the response body only.
"""
def list!, do: list |> body
end