Sha256: 2ef254c11d5cdd18b6343602d989b859c243ab32ca1e39d27c887dd82e7cd6c4

Contents?: true

Size: 597 Bytes

Versions: 2

Compression:

Stored size: 597 Bytes

Contents

module Fog
  module Compute
    class OneAndOne

      class Real

        ##
        # Returns "PONG" if API is running.
        # URL: [https://cloudpanel-api.1and1.com/documentation/1and1/v1/en/documentation.html#ping_get]
        ##
        def ping

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

          request(params)

        end

      end # Real

      
      class Mock

        def ping
          
          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.rb
fog-oneandone-1.0 lib/oneandone/requests/compute/ping.rb