Class: Minfraud::Model::Address
- Inherits:
-
Abstract
- Object
- Abstract
- Minfraud::Model::Address
- Defined in:
- lib/minfraud/model/address.rb
Overview
Abstract model for a postal address.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#distance_to_ip_location ⇒ Integer?
readonly
The distance in kilometers from the address to the IP location.
-
#is_in_ip_country ⇒ Boolean?
readonly
This property is true if the address is in the IP country.
-
#is_postal_in_city ⇒ Boolean?
readonly
This property is true if the postal code provided with the address is in the city for the address.
-
#latitude ⇒ Float?
readonly
The latitude associated with the address.
-
#longitude ⇒ Float?
readonly
The longitude associated with the address.
Instance Attribute Details
#distance_to_ip_location ⇒ Integer? (readonly)
The distance in kilometers from the address to the IP location.
12 13 14 |
# File 'lib/minfraud/model/address.rb', line 12 def distance_to_ip_location @distance_to_ip_location end |
#is_in_ip_country ⇒ Boolean? (readonly)
This property is true if the address is in the IP country. The property is false when the address is not in the IP country. If the address could not be parsed or was not provided or if the IP address could not be geolocated, the property will be nil.
20 21 22 |
# File 'lib/minfraud/model/address.rb', line 20 def is_in_ip_country @is_in_ip_country end |
#is_postal_in_city ⇒ Boolean? (readonly)
This property is true if the postal code provided with the address is in the city for the address. The property is false when the postal code is not in the city. If the address was not provided or could not be parsed, the property will be nil.
28 29 30 |
# File 'lib/minfraud/model/address.rb', line 28 def is_postal_in_city @is_postal_in_city end |
#latitude ⇒ Float? (readonly)
The latitude associated with the address.
33 34 35 |
# File 'lib/minfraud/model/address.rb', line 33 def latitude @latitude end |
#longitude ⇒ Float? (readonly)
The longitude associated with the address.
38 39 40 |
# File 'lib/minfraud/model/address.rb', line 38 def longitude @longitude end |