Class: TD::Types::PhoneNumberInfo
- Defined in:
- lib/tdlib/types/phone_number_info.rb
Overview
Contains information about a phone number.
Instance Attribute Summary collapse
-
#country ⇒ TD::Types::CountryInfo?
Information about the country to which the phone number belongs; may be null.
-
#country_calling_code ⇒ TD::Types::String
The part of the phone number denoting country calling code or its part.
-
#formatted_phone_number ⇒ TD::Types::String
The phone number without country calling code formatted accordingly to local rules.
-
#is_anonymous ⇒ Boolean
True, if the phone number was bought at fragment.com and isn’t tied to a SIM card.
Method Summary
Methods inherited from Base
Instance Attribute Details
#country ⇒ TD::Types::CountryInfo?
Information about the country to which the phone number belongs; may be null.
14 15 16 |
# File 'lib/tdlib/types/phone_number_info.rb', line 14 def country @country end |
#country_calling_code ⇒ TD::Types::String
The part of the phone number denoting country calling code or its part.
14 15 16 |
# File 'lib/tdlib/types/phone_number_info.rb', line 14 def country_calling_code @country_calling_code end |
#formatted_phone_number ⇒ TD::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.
14 15 16 |
# File 'lib/tdlib/types/phone_number_info.rb', line 14 def formatted_phone_number @formatted_phone_number end |
#is_anonymous ⇒ Boolean
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.
14 15 16 |
# File 'lib/tdlib/types/phone_number_info.rb', line 14 def is_anonymous @is_anonymous end |