lib/mihari/entities/ip_address.rb in mihari-7.3.2 vs lib/mihari/entities/ip_address.rb in mihari-7.4.0
- old
+ new
@@ -1,11 +1,11 @@
# 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 }
+ 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