Sha256: c0e5e2ef62336ea6f287f45f46b53bef9cbf21c9d2ee2c46817ae178c0f108cc

Contents?: true

Size: 726 Bytes

Versions: 1

Compression:

Stored size: 726 Bytes

Contents

# frozen_string_literal: true

module Spyse
  module Client
    class Domain < Base
      #
      # Lists domains
      #
      # @see https://spyse.com/api#/domain/domain
      #
      # @param [String] name The domain name.
      #
      # @return [Hash]
      #
      def get(name)
        _get("/domain/#{name}") { |json| json }
      end

      #
      # Lists domains
      #
      # @see https://spyse.com/api#/domain/domain_search
      #
      # @return [Hash]
      #
      def search(search_params, limit: nil, offset: nil)
        params = {
          search_params: search_params, limit: limit, offset: offset,
        }.compact
        _post("/domain/search", params) { |json| json }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spysex-0.2.0 lib/spyse/clients/domain.rb