class Minfraud::Model::Address

Abstract model for a postal address.

Attributes

distance_to_ip_location[R]

The distance in kilometers from the address to the IP location.

@return [Integer, nil]

is_in_ip_country[R]

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.

@return [Boolean, nil]

is_postal_in_city[R]

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.

@return [Boolean, nil]

latitude[R]

The latitude associated with the address.

@return [Float, nil]

longitude[R]

The longitude associated with the address.

@return [Float, nil]

Public Class Methods

new(record) click to toggle source

@!visibility private

Calls superclass method Minfraud::Model::Abstract::new
# File lib/minfraud/model/address.rb, line 41
def initialize(record)
  super(record)

  @distance_to_ip_location = get('distance_to_ip_location')
  @is_in_ip_country        = get('is_in_ip_country')
  @is_postal_in_city       = get('is_postal_in_city')
  @latitude                = get('latitude')
  @longitude               = get('longitude')
end