class BitBroker::ManagerImpl::FileActivity
Constants
- STATUS_REMOVED
Attributes
mtime[R]
path[R]
Public Class Methods
create(path)
click to toggle source
# File lib/bitbroker/manager_impl.rb, line 269 def self.create(path) self.new(path, FileTest.exist?(path) ? File.mtime(path) : Time.now) end
new(path, mtime, status = 0)
click to toggle source
# File lib/bitbroker/manager_impl.rb, line 259 def initialize(path, mtime, status = 0) @path = path @mtime = mtime @status = status end
remove(path)
click to toggle source
# File lib/bitbroker/manager_impl.rb, line 273 def self.remove(path) self.new(path, nil, STATUS_REMOVED) end
Public Instance Methods
removed?()
click to toggle source
# File lib/bitbroker/manager_impl.rb, line 265 def removed? @status & STATUS_REMOVED > 0 end