Sha256: ccf93eb938c11ae7005db9b337f0be9b9025afbe21484d006c6299fab1a97387

Contents?: true

Size: 1.45 KB

Versions: 37

Compression:

Stored size: 1.45 KB

Contents

module Mihari
  class WhoisRecord < ActiveRecord::Base
    attr_accessor domain (): String
    attr_accessor created_on (): DateTime?
    attr_accessor updated_on (): DateTime?
    attr_accessor expires_on (): DateTime?
    attr_accessor registrar (): Hash[(String | Symbol), untyped]
    attr_accessor contacts (): Array[Hash[(String | Symbol), untyped]]

    #
    # Build whois record
    #
    # @param [Stinrg] domain
    #
    # @return [WhoisRecord, nil]
    #
    def self.build_by_domain: (String domain) -> Mihari::WhoisRecord?

    private

    #
    # Get created_on
    #
    # @param [::Whois::Parser:] parser
    #
    # @return [Date, nil]
    #
    def self.get_created_on: (untyped parser) -> Date?

    #
    # Get updated_on
    #
    # @param [::Whois::Parser:] parser
    #
    # @return [Date, nil]
    #
    def self.get_updated_on: (untyped parser) -> Date?

    #
    # Get expires_on
    #
    # @param [::Whois::Parser:] parser
    #
    # @return [Date, nil]
    #
    def self.get_expires_on: (untyped parser) -> Date?

    #
    # Get registrar
    #
    # @param [::Whois::Parser:] parser
    #
    # @return [Hash, nil]
    #
    def self.get_registrar: (untyped parser) -> Hash[(String | Symbol), untyped]?

    #
    # Get contacts
    #
    # @param [::Whois::Parser:] parser
    #
    # @return [Array[Hash[(String | Symbol), untyped]], nil]
    #
    def self.get_contacts: (untyped parser) -> Array[Hash[(String | Symbol), untyped]]?
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
mihari-4.12.0 sig/lib/mihari/models/whois.rbs
mihari-4.11.0 sig/lib/mihari/models/whois.rbs
mihari-4.10.0 sig/lib/mihari/models/whois.rbs
mihari-4.9.0 sig/lib/mihari/models/whois.rbs
mihari-4.8.0 sig/lib/mihari/models/whois.rbs
mihari-4.7.4 sig/lib/mihari/models/whois.rbs
mihari-4.7.3 sig/lib/mihari/models/whois.rbs
mihari-4.7.2 sig/lib/mihari/models/whois.rbs
mihari-4.7.1 sig/lib/mihari/models/whois.rbs
mihari-4.7.0 sig/lib/mihari/models/whois.rbs
mihari-4.6.1 sig/lib/mihari/models/whois.rbs
mihari-4.6.0 sig/lib/mihari/models/whois.rbs
mihari-4.5.3 sig/lib/mihari/models/whois.rbs
mihari-4.5.2 sig/lib/mihari/models/whois.rbs
mihari-4.5.1 sig/lib/mihari/models/whois.rbs
mihari-4.5.0 sig/lib/mihari/models/whois.rbs
mihari-4.4.1 sig/lib/mihari/models/whois.rbs
mihari-4.4.0 sig/lib/mihari/models/whois.rbs
mihari-4.3.0 sig/lib/mihari/models/whois.rbs
mihari-4.2.0 sig/lib/mihari/models/whois.rbs