class
Hamilton::Types::Contact
- Hamilton::Types::Contact
- Reference
- Object
Overview
This object represents a phone contact.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/contact.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#first_name : String
Contact's first name.
-
#first_name=(first_name : String)
Contact's first name.
-
#last_name : String | Nil
Contact's last name.
-
#last_name=(last_name : String | Nil)
Contact's last name.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#phone_number : String
Contact's phone number.
-
#phone_number=(phone_number : String)
Contact's phone number.
-
#user_id : Int64 | Nil
Contact's user identifier in Telegram.
-
#user_id=(user_id : Int64 | Nil)
Contact's user identifier in Telegram.
-
#vcard : String | Nil
Additional data about the contact in the form of a vCard.
-
#vcard=(vcard : String | Nil)
Additional data about the contact in the form of a vCard.