Sha256: 0edb55a58ff42568dd2ef39d84ad49942b9d51de96905a1f1a3af3d04ea6e95e

Contents?: true

Size: 826 Bytes

Versions: 7

Compression:

Stored size: 826 Bytes

Contents

module Fog
  module DNSimple
    class DNS
      class Real

        # Get the list of records for the specific domain.
        #
        # ==== Parameters
        # * domain<~String>
        # ==== Returns
        # * response<~Excon::Response>:
        #   * records<Array~>
        #     * 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 list_records(domain)
          request( :expects  => 200,
                   :method   => "GET",
                   :path     => "/domains/#{domain}/records" )
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-0.8.2 lib/fog/dns/requests/dnsimple/list_records.rb
fog-0.8.1 lib/fog/dns/requests/dnsimple/list_records.rb
fog-0.8.0 lib/fog/dns/requests/dnsimple/list_records.rb
fog-0.7.2 lib/fog/dns/requests/dnsimple/list_records.rb
fog-0.7.1 lib/fog/dns/requests/dnsimple/list_records.rb
fog-0.7.0 lib/fog/dns/requests/dnsimple/list_records.rb
fog-0.6.0 lib/fog/dns/requests/dnsimple/list_records.rb