Class: Yobi::Node
Overview
One file/directory entry from a 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
140
141
142
|
# File 'lib/yobi/repository/ls.rb', line 140
def atime
@atime ||= Time.parse(self["atime"])
end
|
#ctime ⇒ Time
145
146
147
|
# File 'lib/yobi/repository/ls.rb', line 145
def ctime
@ctime ||= Time.parse(self["ctime"])
end
|
#gid ⇒ Integer
125
126
127
|
# File 'lib/yobi/repository/ls.rb', line 125
def gid
self["gid"]
end
|
#inode ⇒ Integer
130
131
132
|
# File 'lib/yobi/repository/ls.rb', line 130
def inode
self["inode"]
end
|
#mtime ⇒ Time
135
136
137
|
# File 'lib/yobi/repository/ls.rb', line 135
def mtime
@mtime ||= Time.parse(self["mtime"])
end
|
#name ⇒ String
95
96
97
|
# File 'lib/yobi/repository/ls.rb', line 95
def name
self["name"]
end
|
#path ⇒ String
105
106
107
|
# File 'lib/yobi/repository/ls.rb', line 105
def path
self["path"]
end
|
#permissions ⇒ String
115
116
117
|
# File 'lib/yobi/repository/ls.rb', line 115
def permissions
self["permissions"]
end
|
#size ⇒ Integer
110
111
112
|
# File 'lib/yobi/repository/ls.rb', line 110
def size
self["size"]
end
|
#type ⇒ String
100
101
102
|
# File 'lib/yobi/repository/ls.rb', line 100
def type
self["type"]
end
|
#uid ⇒ Integer
120
121
122
|
# File 'lib/yobi/repository/ls.rb', line 120
def uid
self["uid"]
end
|