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

#cityString

City.

Returns:

  • (String)

    the current value of city



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

def city
  @city
end

#country_codeString

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

Returns:

  • (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_codeString

Address postal code.

Returns:

  • (String)

    the current value of postal_code



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

def postal_code
  @postal_code
end

#stateString

State, if applicable.

Returns:

  • (String)

    the current value of state



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

def state
  @state
end

#street_line1String

First line of the address.

Returns:

  • (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_line2String

Second line of the address.

Returns:

  • (String)

    the current value of street_line2



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

def street_line2
  @street_line2
end