Sha256: 3cf562aef55719404f1308c788a559d75efb11edf0406e7caa957e9741510985

Contents?: true

Size: 441 Bytes

Versions: 3

Compression:

Stored size: 441 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_keypair(params={})
      id  = params["id"]
      url = params["url"]

      request(
        :path => "keypairs/#{id}",
        :url  => url,
      )
    end
  end  #  Real

  class Mock
    def get_keypair(params={})
      response(
        :body => {"keypair" => self.find(:keypairs, resource_identity(params))},
      )
    end
  end  #  Mock
end  #  Ey::Core::Client

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ey-core-3.6.6 lib/ey-core/requests/get_keypair.rb
ey-core-3.4.5 lib/ey-core/requests/get_keypair.rb
ey-core-3.6.5 lib/ey-core/requests/get_keypair.rb