Class: MTProto::RPC::GetConfig
- Inherits:
-
Object
- Object
- MTProto::RPC::GetConfig
- Defined in:
- lib/mtproto/rpc/get_config.rb
Instance Method Summary collapse
- #call ⇒ Object
- #call_sync ⇒ Object
-
#initialize(client) ⇒ GetConfig
constructor
A new instance of GetConfig.
Constructor Details
#initialize(client) ⇒ GetConfig
Returns a new instance of GetConfig.
9 10 11 |
# File 'lib/mtproto/rpc/get_config.rb', line 9 def initialize(client) @client = client end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 |
# File 'lib/mtproto/rpc/get_config.rb', line 13 def call query = build_query @client.rpc.call(query) end |