Class: MTProto::TL::InvokeWithLayer
- Inherits:
-
Object
- Object
- MTProto::TL::InvokeWithLayer
- Includes:
- Binary
- Defined in:
- lib/mtproto/tl/objects/invoke_with_layer.rb
Instance Attribute Summary collapse
-
#layer ⇒ Object
readonly
Returns the value of attribute layer.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize(layer:, query:) ⇒ InvokeWithLayer
constructor
A new instance of InvokeWithLayer.
- #serialize ⇒ Object
Methods included from Binary
#b_u32, #b_u64, #u32_b, #u64_b
Constructor Details
#initialize(layer:, query:) ⇒ InvokeWithLayer
Returns a new instance of InvokeWithLayer.
10 11 12 13 |
# File 'lib/mtproto/tl/objects/invoke_with_layer.rb', line 10 def initialize(layer:, query:) @layer = layer @query = query end |
Instance Attribute Details
#layer ⇒ Object (readonly)
Returns the value of attribute layer.
8 9 10 |
# File 'lib/mtproto/tl/objects/invoke_with_layer.rb', line 8 def layer @layer end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
8 9 10 |
# File 'lib/mtproto/tl/objects/invoke_with_layer.rb', line 8 def query @query end |
Instance Method Details
#serialize ⇒ Object
15 16 17 |
# File 'lib/mtproto/tl/objects/invoke_with_layer.rb', line 15 def serialize u32_b(Constructors::INVOKE_WITH_LAYER) + u32_b(@layer) + @query.serialize end |