Class: Procfs2::ProcFdId
- Inherits:
-
Object
- Object
- Procfs2::ProcFdId
- Defined in:
- lib/procfs2/proc_fd_id.rb
Instance Attribute Summary collapse
-
#_path ⇒ Object
readonly
Returns the value of attribute _path.
-
#_stat ⇒ Object
readonly
Returns the value of attribute _stat.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id:, path:, stat:) ⇒ ProcFdId
constructor
A new instance of ProcFdId.
- #inode ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(id:, path:, stat:) ⇒ ProcFdId
Returns a new instance of ProcFdId.
7 8 9 10 11 |
# File 'lib/procfs2/proc_fd_id.rb', line 7 def initialize(id:, path:, stat:) @id = id @_path = path @_stat = stat end |
Instance Attribute Details
#_path ⇒ Object (readonly)
Returns the value of attribute _path.
5 6 7 |
# File 'lib/procfs2/proc_fd_id.rb', line 5 def _path @_path end |
#_stat ⇒ Object (readonly)
Returns the value of attribute _stat.
5 6 7 |
# File 'lib/procfs2/proc_fd_id.rb', line 5 def _stat @_stat end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/procfs2/proc_fd_id.rb', line 5 def id @id end |
Instance Method Details
#inode ⇒ Object
17 18 19 |
# File 'lib/procfs2/proc_fd_id.rb', line 17 def inode _stat.ino end |
#type ⇒ Object
13 14 15 |
# File 'lib/procfs2/proc_fd_id.rb', line 13 def type _stat&.ftype end |