Class: MTProto::TL::UpdateUsername
- Inherits:
-
Object
- Object
- MTProto::TL::UpdateUsername
- Includes:
- Binary
- Defined in:
- lib/mtproto/tl/objects/update_username.rb
Constant Summary collapse
- CONSTRUCTOR =
0x3e0bdd7c
Instance Method Summary collapse
-
#initialize(username:) ⇒ UpdateUsername
constructor
A new instance of UpdateUsername.
- #serialize ⇒ Object
Methods included from Binary
#b_u32, #b_u64, #u32_b, #u64_b
Constructor Details
#initialize(username:) ⇒ UpdateUsername
Returns a new instance of UpdateUsername.
10 11 12 |
# File 'lib/mtproto/tl/objects/update_username.rb', line 10 def initialize(username:) @username = username end |
Instance Method Details
#serialize ⇒ Object
14 15 16 17 18 |
# File 'lib/mtproto/tl/objects/update_username.rb', line 14 def serialize result = u32_b(CONSTRUCTOR) result += serialize_tl_string(@username) result end |