Class: TD::Types::Address

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

Overview

Describes an address.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#cityTD::Types::String

City.

Returns:

  • (TD::Types::String)

    the current value of city



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

def city
  @city
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



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

def country_code
  @country_code
end

#postal_codeTD::Types::String

Address postal code.

Returns:

  • (TD::Types::String)

    the current value of postal_code



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

def postal_code
  @postal_code
end

#stateTD::Types::String

State, if applicable.

Returns:

  • (TD::Types::String)

    the current value of state



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

def state
  @state
end

#street_line1TD::Types::String

First line of the address.

Returns:

  • (TD::Types::String)

    the current value of street_line1



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

def street_line1
  @street_line1
end

#street_line2TD::Types::String

Second line of the address.

Returns:

  • (TD::Types::String)

    the current value of street_line2



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

def street_line2
  @street_line2
end