Sha256: 108f4ff9ec670f435918c9d8289400b2744c9c55dbd56c3b407ed37f942cd6b6

Contents?: true

Size: 707 Bytes

Versions: 61

Compression:

Stored size: 707 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Entities
    class WhoisRecord < Grape::Entity
      expose :domain, documentation: { type: String, required: true }
      expose :created_on, documentation: { type: Date, required: false }, as: :createdOn
      expose :updated_on, documentation: { type: Date, required: false }, as: :updatedOn
      expose :expires_on, documentation: { type: Date, required: false }, as: :expiresOn
      expose :registrar, documentation: { type: Hash, required: false }
      expose :contacts, documentation: { type: Hash, is_array: true, required: true } do |whois_record, _options|
        whois_record.contacts.map(&:to_camelback_keys)
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
mihari-4.8.0 lib/mihari/entities/whois.rb
mihari-4.7.4 lib/mihari/entities/whois.rb
mihari-4.7.3 lib/mihari/entities/whois.rb
mihari-4.7.2 lib/mihari/entities/whois.rb
mihari-4.7.1 lib/mihari/entities/whois.rb
mihari-4.7.0 lib/mihari/entities/whois.rb
mihari-4.6.1 lib/mihari/entities/whois.rb
mihari-4.6.0 lib/mihari/entities/whois.rb
mihari-4.5.3 lib/mihari/entities/whois.rb
mihari-4.5.2 lib/mihari/entities/whois.rb
mihari-4.5.1 lib/mihari/entities/whois.rb
mihari-4.5.0 lib/mihari/entities/whois.rb
mihari-4.4.1 lib/mihari/entities/whois.rb
mihari-4.4.0 lib/mihari/entities/whois.rb
mihari-4.3.0 lib/mihari/entities/whois.rb
mihari-4.2.0 lib/mihari/entities/whois.rb
mihari-4.1.2 lib/mihari/web/entities/whois.rb
mihari-4.1.1 lib/mihari/web/entities/whois.rb
mihari-4.1.0 lib/mihari/web/entities/whois.rb
mihari-4.0.0 lib/mihari/web/entities/whois.rb