Sha256: fdda39fbbb8aba99401f4493b173db6160f19c7f006ac268213a186785f97216

Contents?: true

Size: 641 Bytes

Versions: 2

Compression:

Stored size: 641 Bytes

Contents

module Fog
  module Compute
    class OneAndOne

      class Real

        ##
        # Returns "PONG" if API is running and your token is valid.
        # URL: [https://cloudpanel-api.1and1.com/documentation/1and1/v1/en/documentation.html#ping_auth_get]
        ##
        def ping_auth

          # Request
          params = {
            'method' => :get,
            'endpoint' => '/ping_auth'
          }

          request(params)

        end

      end # Real

      
      class Mock

        def ping_auth
          
          Fog::Mock.not_implemented

        end

      end # Mock

    end # OneAndOne
  end # Compute
end # Fog

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-oneandone-1.2 lib/oneandone/requests/compute/ping_auth.rb
fog-oneandone-1.0 lib/oneandone/requests/compute/ping_auth.rb