class QuartzTorrent::Metainfo::FileInfo
Attributes
length[RW]
Length of the file.
path[RW]
Relative path to the file. For a single-file torrent this is simply the name of the file. For a multi-file torrent, this is the directory names from the torrent and the filename separated by the file separator.
Public Class Methods
new(length = nil, path = nil)
click to toggle source
# File lib/quartz_flow/mock_client.rb, line 31 def initialize(length = nil, path = nil) @length = length @path = path end
Public Instance Methods
to_h()
click to toggle source
# File lib/quartz_flow/wrappers.rb, line 6 def to_h { path: @path, length: @length } end