Class: TD::Types::CountryInfo

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

Overview

Contains information about a country.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#calling_codesArray<TD::Types::String>

List of country calling codes.

Returns:

  • (Array<TD::Types::String>)

    the current value of calling_codes



9
10
11
# File 'lib/tdlib/types/country_info.rb', line 9

def calling_codes
  @calling_codes
end

#country_codeTD::Types::String

A two-letter ISO 3166-1 alpha-2 country code.

Returns:

  • (TD::Types::String)

    the current value of country_code



9
10
11
# File 'lib/tdlib/types/country_info.rb', line 9

def country_code
  @country_code
end

#english_nameTD::Types::String

English name of the country.

Returns:

  • (TD::Types::String)

    the current value of english_name



9
10
11
# File 'lib/tdlib/types/country_info.rb', line 9

def english_name
  @english_name
end

#is_hiddenBoolean

True, if the country must be hidden from the list of all countries.

Returns:

  • (Boolean)

    the current value of is_hidden



9
10
11
# File 'lib/tdlib/types/country_info.rb', line 9

def is_hidden
  @is_hidden
end

#nameTD::Types::String

Native name of the country.

Returns:

  • (TD::Types::String)

    the current value of name



9
10
11
# File 'lib/tdlib/types/country_info.rb', line 9

def name
  @name
end