Class: Mihari::Structs::Censys::V2::Location
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Mihari::Structs::Censys::V2::Location
- Defined in:
- lib/mihari/structs/censys.rb
Instance Attribute Summary collapse
- #country ⇒ String? readonly
- #country_code ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#geolocation ⇒ Mihari::Geolocation
<description>.
Instance Attribute Details
Class Method Details
Instance Method Details
#geolocation ⇒ Mihari::Geolocation
Returns <description>.
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/mihari/structs/censys.rb', line 48 def geolocation # sometimes Censys overlooks country # then set geolocation as nil return nil if country.nil? Mihari::Models::Geolocation.new( country:, country_code: ) end |