class LeoManager::AssignedFile
¶ ↑
Assigned file info Model
¶ ↑
Attributes
checksum[R]
clock[R]
delete[R]
node[R]
num_of_chunks[R]
size[R]
timestamp[R]
vnode_id[R]
Public Class Methods
new(h)
click to toggle source
# File lib/leo_manager_models.rb, line 198 def initialize(h) @node = h[:node] @vnode_id = h[:vnode_id] @size = h[:size] @clock = h[:clock] @checksum = h[:checksum] timestamp = h[:timestamp] @timestamp = timestamp.empty? ? timestamp : Time.parse(timestamp) @delete = h[:delete] != 0 # bool @num_of_chunks = h[:num_of_chunks] end