Sha256: f90ce1399920f86f2ba932570cff2d15475fa15606877bed5b1ceb8b0231934c

Contents?: true

Size: 673 Bytes

Versions: 3

Compression:

Stored size: 673 Bytes

Contents

module Fog
  module Compute
    class DigitalOceanV2
      class Real
        def list_ssh_keys
          request(
            :expects => [200],
            :method => 'GET',
            :path => 'v2/account/keys',
          )
        end
      end

      # noinspection RubyStringKeysInHashInspection
      class Mock
        def list_ssh_keys
          response = Excon::Response.new
          response.status = 200
          response.body = {
            "ssh_keys" => data[:ssh_keys],
            "links" => {},
            "meta" => {
              "total" => data[:ssh_keys].count
            }
          }
          response
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-1.38.0 lib/fog/digitalocean/requests/compute_v2/list_ssh_keys.rb
fog-1.37.0 lib/fog/digitalocean/requests/compute_v2/list_ssh_keys.rb
fog-1.36.0 lib/fog/digitalocean/requests/compute_v2/list_ssh_keys.rb