Sha256: db02784cc48518227864ab1561424541968df336a12f082f37dbdc7ccf3d0c6a

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

module Datacentred
  module Request
    # RESTful API requests for the versions endpoint.
    #
    #   This model does not require authentication.
    #
    # An API version may be:
    # * *CURRENT* - The latest supported version.
    # * *SUPPORTED* - A supported older version.
    # * *DEPRECATED* - Currently supported but soon to be retired.
    class Versions < Base
      # List all available API versions
      #
      #   GET /api
      #
      # @return [[Hash]] Currently available versions of the API.
      def self.list
        get("/api")['versions']
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datacentred-1.1.1 lib/datacentred/request/versions.rb