class
TD::Address
- TD::Address
- TD::Base
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
telegram/types/address.crConstructors
- .new(country_code : String, state : Union(String, Nil), city : String, street_line1 : String, street_line2 : String, postal_code : String)
- .new(pull : JSON::PullParser)
- .new(__json : JSON::Any | Nil = nil)
Instance Method Summary
- #city : String
- #city=(city : String)
- #country_code : String
- #country_code=(country_code : String)
- #object_type : String
- #object_type=(object_type : String)
- #postal_code : String
- #postal_code=(postal_code : String)
- #state : String?
- #state=(state : Nil | String)
- #street_line1 : String
- #street_line1=(street_line1 : String)
- #street_line2 : String
- #street_line2=(street_line2 : String)
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)
#