Sha256: 4af03cd3d0e768852ec651ec788a5996c45ec4ed755c3abc0cf393149ff1098f
Contents?: true
Size: 1.17 KB
Versions: 4
Compression:
Stored size: 1.17 KB
Contents
module Censys class Location # @return [String] attr_reader :postal_code # @return [String] attr_reader :city # @return [String] attr_reader :province # @return [String] attr_reader :country # @return [String] attr_reader :continent # @return [String] attr_reader :registered_country # @return [String] attr_reader :registered_country_code # @return [String] attr_reader :timezone # @return [Float] attr_reader :latitude # @return [Float] attr_reader :longitude # # Initializes the location information. # # @param [Hash{String => Object}] attributes # def initialize(attributes) @postal_code = attributes['postal_code'] @city = attributes['city'] @province = attributes['province'] @country = attributes['country'] @continent = attributes['continent'] @registered_country = attributes['registered_country'] @registered_country_code = attributes['registered_country_code'] @timezone = attributes['timezone'] @latitude = attributes['latitude'] @longitude = attributes['longitude'] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
censu-0.1.4 | lib/censys/location.rb |
censu-0.1.3 | lib/censys/location.rb |
censu-0.1.2 | lib/censys/location.rb |
censu-0.1.1 | lib/censys/location.rb |