Sha256: 7ee296f3ec38235a2ef9648da25bd69066eb70af626718fbf2e48482e07d7b1b

Contents?: true

Size: 860 Bytes

Versions: 67

Compression:

Stored size: 860 Bytes

Contents

module Fog
  module DNS
    class DNSimple
      class Real

        # Gets record from given domain.
        #
        # ==== Parameters
        # * domain<~String>
        # * record_id<~String>
        # ==== 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 get_record(domain, record_id)

          request( :expects  => 200,
                   :method   => "GET",
                   :path     => "/domains/#{domain}/records/#{record_id}" )
        end

      end
    end
  end
end

Version data entries

67 entries across 67 versions & 19 rubygems

Version Path
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/dns/requests/dnsimple/get_record.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/dns/requests/dnsimple/get_record.rb
fog-0.11.0 lib/fog/dns/requests/dnsimple/get_record.rb
fog-0.10.0 lib/fog/dns/requests/dnsimple/get_record.rb
fog4encbs-0.9.0.1 lib/fog/dns/requests/dnsimple/get_record.rb
fog4encbs-0.9.0 lib/fog/dns/requests/dnsimple/get_record.rb
fog-0.9.0 lib/fog/dns/requests/dnsimple/get_record.rb