Class: Minfraud::Model::Phone
- Inherits:
-
Abstract
- Object
- Abstract
- Minfraud::Model::Phone
- Defined in:
- lib/minfraud/model/phone.rb
Overview
Model with information about the billing or shipping phone number.
Instance Attribute Summary collapse
-
#country ⇒ String?
readonly
The two-character ISO 3166-1 country code for the country associated with the phone number.
-
#is_voip ⇒ Boolean?
readonly
This is true if the phone number is a Voice over Internet Protocol (VoIP) number allocated by a regulator.
-
#matches_postal ⇒ Boolean?
readonly
This property is true if the phone number’s prefix is commonly associated with the postal code.
-
#network_operator ⇒ String?
readonly
The name of the original network operator associated with the phone number.
-
#number_type ⇒ String?
readonly
One of the following values: fixed or mobile.
Instance Attribute Details
#country ⇒ String? (readonly)
The two-character ISO 3166-1 country code for the country associated with the phone number.
13 14 15 |
# File 'lib/minfraud/model/phone.rb', line 13 def country @country end |
#is_voip ⇒ Boolean? (readonly)
This is true if the phone number is a Voice over Internet Protocol (VoIP) number allocated by a regulator. It is false if the phone number is not a VoIP number allocated by a regulator. The attribute is nil when a valid phone number has not been provided or we do not have data for the phone number.
22 23 24 |
# File 'lib/minfraud/model/phone.rb', line 22 def is_voip @is_voip end |
#matches_postal ⇒ Boolean? (readonly)
This property is true if the phone number’s prefix is commonly associated with the postal code. It is false if the prefix is not associated with the postal code. It is non-nil only when the phone number is in the US, the number prefix is in our database, and the postal code and country are provided in the request.
31 32 33 |
# File 'lib/minfraud/model/phone.rb', line 31 def matches_postal @matches_postal end |
#network_operator ⇒ String? (readonly)
The name of the original network operator associated with the phone number. This attribute does not reflect phone numbers that have been ported from the original operator to another, nor does it identify mobile virtual network operators.
39 40 41 |
# File 'lib/minfraud/model/phone.rb', line 39 def network_operator @network_operator end |
#number_type ⇒ String? (readonly)
One of the following values: fixed or mobile. Additional values may be added in the future.
45 46 47 |
# File 'lib/minfraud/model/phone.rb', line 45 def number_type @number_type end |