Sha256: fc5befc45f4bfc309b3ba5dd63143a10a94f12c1d7f4eee65556d78082ee5902

Contents?: true

Size: 629 Bytes

Versions: 7

Compression:

Stored size: 629 Bytes

Contents

# frozen_string_literal: true

module SecurityTrails
  module Clients
    class Domain < Client
      def get_by_hostname(hostname)
        get("/domain/#{hostname}") { |json| json }
      end

      def get_subdomains(hostname)
        get("/domain/#{hostname}/subdomains") { |json| json }
      end

      def get_tags(hostname)
        get("/domain/#{hostname}/tags") { |json| json }
      end

      def get_associated_domains(hostname)
        get("/domain/#{hostname}/associated") { |json| json }
      end

      def get_whois(hostname)
        get("/domain/#{hostname}/whois") { |json| json }
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
securitytrails-0.2.0 lib/securitytrails/clients/domain.rb
securitytrails-0.1.5 lib/securitytrails/clients/domain.rb
securitytrails-0.1.4 lib/securitytrails/clients/domain.rb
securitytrails-0.1.3 lib/securitytrails/clients/domain.rb
securitytrails-0.1.2 lib/securitytrails/clients/domain.rb
securitytrails-0.1.1 lib/securitytrails/clients/domain.rb
securitytrails-0.1.0 lib/securitytrails/clients/domain.rb