Class: TD::Types::PhoneNumberInfo

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/phone_number_info.rb

Overview

Contains information about a phone number.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#countryTD::Types::CountryInfo?

Information about the country to which the phone number belongs; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/phone_number_info.rb', line 14

def country
  @country
end

#country_calling_codeTD::Types::String

The part of the phone number denoting country calling code or its part.

Returns:

  • (TD::Types::String)

    the current value of country_calling_code



14
15
16
# File 'lib/tdlib/types/phone_number_info.rb', line 14

def country_calling_code
  @country_calling_code
end

#formatted_phone_numberTD::Types::String

The phone number without country calling code formatted accordingly to local rules. Expected digits are returned as ‘-’, but even more digits might be entered by the user.

Returns:

  • (TD::Types::String)

    the current value of formatted_phone_number



14
15
16
# File 'lib/tdlib/types/phone_number_info.rb', line 14

def formatted_phone_number
  @formatted_phone_number
end

#is_anonymousBoolean

True, if the phone number was bought at fragment.com and isn’t tied to a SIM card. Information about the phone number can be received using getCollectibleItemInfo.

Returns:

  • (Boolean)

    the current value of is_anonymous



14
15
16
# File 'lib/tdlib/types/phone_number_info.rb', line 14

def is_anonymous
  @is_anonymous
end