Class: Minfraud::Model::Phone

Inherits:
Abstract
  • Object
show all
Defined in:
lib/minfraud/model/phone.rb

Overview

Model with information about the billing or shipping phone number.

Instance Attribute Summary collapse

Instance Attribute Details

#countryString? (readonly)

The two-character ISO 3166-1 country code for the country associated with the phone number.

Returns:

  • (String, nil)


13
14
15
# File 'lib/minfraud/model/phone.rb', line 13

def country
  @country
end

#is_voipBoolean? (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.

Returns:

  • (Boolean, nil)


22
23
24
# File 'lib/minfraud/model/phone.rb', line 22

def is_voip
  @is_voip
end

#network_operatorString? (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.

Returns:

  • (String, nil)


30
31
32
# File 'lib/minfraud/model/phone.rb', line 30

def network_operator
  @network_operator
end

#number_typeString? (readonly)

One of the following values: fixed or mobile. Additional values may be added in the future.

Returns:

  • (String, nil)


36
37
38
# File 'lib/minfraud/model/phone.rb', line 36

def number_type
  @number_type
end