Sha256: db16ad1d04d1e5f7f2f953d27ffcee3301bbf26d2e05b1f8ec841025e441108f
Contents?: true
Size: 1.24 KB
Versions: 1
Compression:
Stored size: 1.24 KB
Contents
class Sabnzbd class Slot attr_accessor :filename, :average_age, :status, :category, :files_missing, :position, :priority, :percentage_completed, :time_left, :eta, :size, :size_left, :mb, :mb_left, :msgid, :nzo_id def initialize(args={}) @filename = args["filename"] || "No filename" @average_age = args["avg_age"] || "-" @status = args["status"] || "No status" @category = args["cat"] || "-" @files_missing = args["missing"] || 0 @position = args["index"] || 0 @priority = args["priority"] || "-" @percentage_completed = args["percentage"] || @time_left = args["timeleft"] || Time.now @eta = args["eta"] || "-" @size = args["size"] || "-" @size_left = args["sizeleft"] || "-" @mb = args["mb"] || 0.00 @mb_left = args["mbleft"] || 0.00 @msgid = args["msgid"] || nil @nzo_id = args["nzo_id"] || "-" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sabnzbd-0.2.0 | lib/sabnzbd/slot.rb |