Sha256: 9043dcdd318f2922ad543be3648b68779c1a5dccf132343ee0955556833aa024
Contents?: true
Size: 1.12 KB
Versions: 35
Compression:
Stored size: 1.12 KB
Contents
module Fog module DNS class DNSimple class Real # Update the given record for the given domain. # # ==== Parameters # * domain<~String> # * record_id<~String> # * options<~Hash> - optional # * type<~String> # * content<~String> # * priority<~Integer> # * ttl<~Integer> # ==== Returns # * response<~Excon::Response>: # * record<~Hash> # * name<~String> # * ttl<~Integer> # * created_at<~String> # * special_type<~String> # * updated_at<~String> # * domain_id<~Integer> # * id<~Integer> # * content<~String> # * record_type<~String> # * prio<~Integer> def update_record(domain, record_id, options) body = { "record" => options } request( :body => Fog::JSON.encode(body), :expects => 200, :method => "PUT", :path => "/domains/#{domain}/records/#{record_id}" ) end end end end end
Version data entries
35 entries across 35 versions & 12 rubygems