class OceanKit::Resource::Region


A region in DigitalOcean represents a datacenter where Droplets can be deployed and images can be transferred.

Each region represents a specific datacenter in a geographic location. Some geographical locations may have multiple "regions" available. This means that there are multiple datacenters available within that area.

Defined in:


Instance Method Summary

Class methods inherited from class OceanKit::Resource::Base

new(headers : HTTP::Headers | Nil) new

Instance methods inherited from module OceanKit::Client::Connection

destroy(path, options = nil) destroy, get(path, options = nil) get, post(path, options) post, put(path, options) put, request(http_method, path, options) request

Instance Method Detail

def all #

Return list all of the regions that are available

The response will be a JSON object with a key called regions. The value of this will be an array of region objects, each of which will contain the standard region attributes

[View source]
def regions #

[View source]