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

#id ⇒ Integer

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_enabled ⇒ Boolean

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_date ⇒ Integer

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

#port ⇒ Integer

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

#server ⇒ String

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

#type ⇒ TD::Types::ProxyType

Type of the proxy.

Returns:



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

def type
  @type
end