Sha256: f5379c89be04d4df35732662c15b53080c6e319201ff86fb249ef5c292858fd7

Contents?: true

Size: 370 Bytes

Versions: 10

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Entities
    class Geolocation < Grape::Entity
      expose :country, documentation: {type: String, required: true}
      expose :country_code, documentation: {type: String, required: true}, as: :countryCode
      expose :created_at, documentation: {type: DateTime, required: true}, as: :createdAt
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mihari-8.0.2 lib/mihari/entities/geolocation.rb
mihari-8.0.1 lib/mihari/entities/geolocation.rb
mihari-8.0.0 lib/mihari/entities/geolocation.rb
mihari-7.6.4 lib/mihari/entities/geolocation.rb
mihari-7.6.3 lib/mihari/entities/geolocation.rb
mihari-7.6.2 lib/mihari/entities/geolocation.rb
mihari-7.6.1 lib/mihari/entities/geolocation.rb
mihari-7.6.0 lib/mihari/entities/geolocation.rb
mihari-7.5.0 lib/mihari/entities/geolocation.rb
mihari-7.4.0 lib/mihari/entities/geolocation.rb