class QuartzTorrent::TrackerPeer
Attributes
id[RW]
ip[RW]
port[RW]
Public Class Methods
new(ip, port, id = nil)
click to toggle source
# File lib/quartz_flow/mock_client.rb, line 71 def initialize(ip, port, id = nil) @ip = ip @port = port @id = id end
Public Instance Methods
to_h()
click to toggle source
# File lib/quartz_flow/wrappers.rb, line 24 def to_h { ip: @ip, port: @port } end