Sha256: f914b4dceb9543516ccc52ce04b24faf3b615e2159208a732a2612a92796e8d1
Contents?: true
Size: 806 Bytes
Versions: 1
Compression:
Stored size: 806 Bytes
Contents
# frozen_string_literal: true module Fog module Compute class CloudAtCost class Real def reverse_dns(id, host_name) body = { sid: id.to_s, hostname: host_name.to_s } request( expects: [200], method: 'POST', path: 'api/v1/rdns.php', body: body ) end end class Mock def reverse_dns(_id, _hostname) response = Excon::Response.new response.status = 200 response.body = { 'server_id' => Fog::Mock.random_numbers(1).to_i, 'api' => 'v1', 'status' => 'ok', 'result' => 'successful', 'time' => 12_312_323 } 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/reverse_dns.rb |