Class: Telegram::CLIArguments

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/cli_arguments.rb

Overview

Command line arguments for telegram-cli

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ CLIArguments

Returns a new instance of CLIArguments.



4
5
6
# File 'lib/telegram/cli_arguments.rb', line 4

def initialize(config)
  @config = config
end

Instance Method Details

#to_sObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/telegram/cli_arguments.rb', line 8

def to_s
  [
    disable_colors,
    rsa_key,
    disable_names,
    wait_dialog_list,
    udp_socket,
    json,
    disable_readline,
    profile,
    config_file
  ].compact.join(' ')
end