Sha256: 66addc7795a78455827694866aa5e686cd093915ac93f07f7bc9734aec0d6cc9

Contents?: true

Size: 348 Bytes

Versions: 14

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Entities
    class IPAddress < Grape::Entity
      expose :country_code, documentation: { type: String, required: true }, as: :countryCode
      expose :asn, documentation: { type: Integer, required: false }
      expose :loc, documentation: { type: String, required: false }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mihari-7.3.2 lib/mihari/entities/ip_address.rb
mihari-7.3.1 lib/mihari/entities/ip_address.rb
mihari-7.3.0 lib/mihari/entities/ip_address.rb
mihari-7.2.0 lib/mihari/entities/ip_address.rb
mihari-7.1.3 lib/mihari/entities/ip_address.rb
mihari-7.1.2 lib/mihari/entities/ip_address.rb
mihari-7.1.1 lib/mihari/entities/ip_address.rb
mihari-7.1.0 lib/mihari/entities/ip_address.rb
mihari-7.0.5 lib/mihari/entities/ip_address.rb
mihari-7.0.4 lib/mihari/entities/ip_address.rb
mihari-7.0.3 lib/mihari/entities/ip_address.rb
mihari-7.0.2 lib/mihari/entities/ip_address.rb
mihari-7.0.1 lib/mihari/entities/ip_address.rb
mihari-7.0.0 lib/mihari/entities/ip_address.rb