Class: Yobi::LsEntry
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Yobi::LsEntry
- Defined in:
- lib/yobi/repository/ls.rb,
sig/yobi.rbs
Overview
One file/directory entry from a Repository#ls call.
Instance Method Summary collapse
- #atime ⇒ Time
- #ctime ⇒ Time
- #gid ⇒ Integer
- #inode ⇒ Integer
- #mtime ⇒ Time
- #name ⇒ String
- #path ⇒ String
- #permissions ⇒ String
- #size ⇒ Integer
- #type ⇒ String
- #uid ⇒ Integer
Instance Method Details
#atime ⇒ Time
108 109 110 |
# File 'lib/yobi/repository/ls.rb', line 108 def atime @atime ||= Time.parse(self["atime"]) end |
#ctime ⇒ Time
113 114 115 |
# File 'lib/yobi/repository/ls.rb', line 113 def ctime @ctime ||= Time.parse(self["ctime"]) end |
#gid ⇒ Integer
93 94 95 |
# File 'lib/yobi/repository/ls.rb', line 93 def gid self["gid"] end |
#inode ⇒ Integer
98 99 100 |
# File 'lib/yobi/repository/ls.rb', line 98 def inode self["inode"] end |
#mtime ⇒ Time
103 104 105 |
# File 'lib/yobi/repository/ls.rb', line 103 def mtime @mtime ||= Time.parse(self["mtime"]) end |
#name ⇒ String
63 64 65 |
# File 'lib/yobi/repository/ls.rb', line 63 def name self["name"] end |
#path ⇒ String
73 74 75 |
# File 'lib/yobi/repository/ls.rb', line 73 def path self["path"] end |
#permissions ⇒ String
83 84 85 |
# File 'lib/yobi/repository/ls.rb', line 83 def self["permissions"] end |
#size ⇒ Integer
78 79 80 |
# File 'lib/yobi/repository/ls.rb', line 78 def size self["size"] end |
#type ⇒ String
68 69 70 |
# File 'lib/yobi/repository/ls.rb', line 68 def type self["type"] end |
#uid ⇒ Integer
88 89 90 |
# File 'lib/yobi/repository/ls.rb', line 88 def uid self["uid"] end |