• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ninoseki / mihari / 7074819618

03 Dec 2023 05:07AM UTC coverage: 94.88% (+0.02%) from 94.86%
7074819618

push

github

web-flow
Merge pull request #843 from ninoseki/renew-data-type

refactor: renew TypeChecker

29 of 29 new or added lines in 10 files covered. (100.0%)

1 existing line in 1 file now uncovered.

3373 of 3555 relevant lines covered (94.88%)

88.19 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/lib/mihari/entities/whois.rb
1
# frozen_string_literal: true
2

3
module Mihari
4✔
4
  module Entities
4✔
5
    class WhoisRecord < Grape::Entity
4✔
6
      expose :domain, documentation: { type: String, required: true }
4✔
7
      expose :created_on, documentation: { type: Date, required: false }, as: :createdOn
4✔
8
      expose :updated_on, documentation: { type: Date, required: false }, as: :updatedOn
4✔
9
      expose :expires_on, documentation: { type: Date, required: false }, as: :expiresOn
4✔
10
      expose :registrar, documentation: { type: Hash, required: false }
4✔
11
      expose :contacts, documentation: { type: Hash, is_array: true, required: true } do |whois_record, _options|
4✔
UNCOV
12
        whois_record.contacts.map(&:to_camelback_keys)
×
13
      end
14
    end
15
  end
16
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc