Class: Ipregistry::Models::Country
- Defined in:
- lib/ipregistry/models/location.rb
Overview
Country-level information for a location.
Instance Method Summary collapse
-
#borders ⇒ Array<String>
ISO 3166-1 alpha-2 codes of bordering countries.
Methods inherited from Base
#==, #[], #hash, #initialize, #inspect, #to_h
Constructor Details
This class inherits a constructor from Ipregistry::Models::Base
Instance Method Details
#borders ⇒ Array<String>
ISO 3166-1 alpha-2 codes of bordering countries.
41 42 43 44 |
# File 'lib/ipregistry/models/location.rb', line 41 def borders value = @data["borders"] value.is_a?(Array) ? value : [] end |