class TD::Address

Included Modules

Defined in:

telegram/types/address.cr

Constructors

Instance Method Summary

Instance methods inherited from class TD::Base

extract_abstract_type(__json : JSON::Any) extract_abstract_type, extract_type(__json : JSON::Any, class_type : Class) extract_type

Macros inherited from class TD::Base

object_attributes(type) object_attributes, object_type(type) object_type

Constructor Detail

def self.new(country_code : String, state : Union(String, Nil), city : String, street_line1 : String, street_line2 : String, postal_code : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(__json : JSON::Any | Nil = nil) #

[View source]

Instance Method Detail

def city : String #

def city=(city : String) #

def country_code : String #

def country_code=(country_code : String) #

def object_type : String #

def object_type=(object_type : String) #

def postal_code : String #

def postal_code=(postal_code : String) #

def state : String? #

def state=(state : Nil | String) #

def street_line1 : String #

def street_line1=(street_line1 : String) #

def street_line2 : String #

def street_line2=(street_line2 : String) #