Sha256: e4cca73f0ad2682592e0cacb780593bd58b06971c93074f9424b64bad959c913

Contents?: true

Size: 254 Bytes

Versions: 8

Compression:

Stored size: 254 Bytes

Contents

module DigitalOcean
  module Resource
    class Region < Base
      # @return [Hashie::Rash] List of all regions
      # @example
      #   regions = client.regions.list
      def list
        @connection.get('/regions').body
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
digital_ocean-1.5.0 lib/digital_ocean/resource/region.rb
digital_ocean-1.4.0 lib/digital_ocean/resource/region.rb
digital_ocean-1.3.0 lib/digital_ocean/resource/region.rb
digital_ocean-1.2.0 lib/digital_ocean/resource/region.rb
digital_ocean-1.0.1 lib/digital_ocean/resource/region.rb
digital_ocean-1.0.0 lib/digital_ocean/resource/region.rb
digital_ocean-0.2.0 lib/digital_ocean/resource/region.rb
digital_ocean-0.1.0 lib/digital_ocean/resource/region.rb