Class: TD::Types::Proxy

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/proxy.rb

Overview

Contains information about a proxy server.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#idInteger

Unique identifier of the proxy.

Returns:

  • (Integer)

    the current value of id



10
11
12
# File 'lib/tdlib/types/proxy.rb', line 10

def id
  @id
end

#is_enabledBoolean

True, if the proxy is enabled now.

Returns:

  • (Boolean)

    the current value of is_enabled



10
11
12
# File 'lib/tdlib/types/proxy.rb', line 10

def is_enabled
  @is_enabled
end

#last_used_dateInteger

Point in time (Unix timestamp) when the proxy was last used; 0 if never.

Returns:

  • (Integer)

    the current value of last_used_date



10
11
12
# File 'lib/tdlib/types/proxy.rb', line 10

def last_used_date
  @last_used_date
end

#portInteger

Proxy server port.

Returns:

  • (Integer)

    the current value of port



10
11
12
# File 'lib/tdlib/types/proxy.rb', line 10

def port
  @port
end

#serverString

Proxy server IP address.

Returns:

  • (String)

    the current value of server



10
11
12
# File 'lib/tdlib/types/proxy.rb', line 10

def server
  @server
end

#typeTD::Types::ProxyType

Type of the proxy.

Returns:



10
11
12
# File 'lib/tdlib/types/proxy.rb', line 10

def type
  @type
end