Sha256: 14c62c8229900561b2a12059cb0c946b2378ef1ae72200d37d2934fcd80308b6
Contents?: true
Size: 785 Bytes
Versions: 10
Compression:
Stored size: 785 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 expose :created_at, documentation: {type: DateTime, required: true}, as: :createdAt end end end
Version data entries
10 entries across 10 versions & 1 rubygems