Sha256: abcbb42931171040f1abf594d2abf38b458cb143b9a763f269391e064f4a9598

Contents?: true

Size: 603 Bytes

Versions: 1

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

module Fog
  module Compute
    class CloudAtCost
      class Real
        def list_tasks
          request(
            expects: [200],
            method: 'GET',
            path: '/api/v1/listtasks.php'
          )
        end
      end

      # noinspection RubyStringKeysInHashInspection
      class Mock
        def list_tasks
          response = Excon::Response.new
          response.status = 200
          response.body = {
            'status' => 'OK',
            'servers' => data[:data]
          }
          response
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-cloudatcost-0.4.0 lib/fog/cloudatcost/requests/list_tasks.rb