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:



10
11
12
# File 'lib/tdlib/types/phone_number_info.rb', line 10

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



10
11
12
# File 'lib/tdlib/types/phone_number_info.rb', line 10

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.

Returns:

  • (TD::Types::String)

    the current value of formatted_phone_number



10
11
12
# File 'lib/tdlib/types/phone_number_info.rb', line 10

def formatted_phone_number
  @formatted_phone_number
end