Class: Yobi::Node
Overview
One file/directory entry from a Yobi::Repository#ls call. Restic's own
term for this is a "node" - the same structure it uses internally for
every entry in a snapshot's tree, not just ones ls happens to show.
Instance Method Summary
collapse
Methods inherited from FancyHash
#initialize, #inspect, #pretty_print
Instance Method Details
#atime ⇒ Time
118
119
120
|
# File 'lib/yobi/repository/ls.rb', line 118
def atime
@atime ||= Time.parse(self["atime"])
end
|
#ctime ⇒ Time
122
123
124
|
# File 'lib/yobi/repository/ls.rb', line 122
def ctime
@ctime ||= Time.parse(self["ctime"])
end
|
#gid ⇒ Integer
106
107
108
|
# File 'lib/yobi/repository/ls.rb', line 106
def gid
self["gid"]
end
|
#inode ⇒ Integer
110
111
112
|
# File 'lib/yobi/repository/ls.rb', line 110
def inode
self["inode"]
end
|
#mtime ⇒ Time
114
115
116
|
# File 'lib/yobi/repository/ls.rb', line 114
def mtime
@mtime ||= Time.parse(self["mtime"])
end
|
#name ⇒ String
82
83
84
|
# File 'lib/yobi/repository/ls.rb', line 82
def name
self["name"]
end
|
#path ⇒ String
90
91
92
|
# File 'lib/yobi/repository/ls.rb', line 90
def path
self["path"]
end
|
#permissions ⇒ String
98
99
100
|
# File 'lib/yobi/repository/ls.rb', line 98
def permissions
self["permissions"]
end
|
#size ⇒ Integer
94
95
96
|
# File 'lib/yobi/repository/ls.rb', line 94
def size
self["size"]
end
|
#type ⇒ String
86
87
88
|
# File 'lib/yobi/repository/ls.rb', line 86
def type
self["type"]
end
|
#uid ⇒ Integer
102
103
104
|
# File 'lib/yobi/repository/ls.rb', line 102
def uid
self["uid"]
end
|