Class: Remi::Extractor::FileSystemEntry
- Inherits:
-
Object
- Object
- Remi::Extractor::FileSystemEntry
- Defined in:
- lib/remi/extractor/file_system.rb
Instance Attribute Summary collapse
-
#create_time ⇒ Object
readonly
Returns the value of attribute create_time.
-
#modified_time ⇒ Object
readonly
Returns the value of attribute modified_time.
-
#pathname ⇒ Object
readonly
Returns the value of attribute pathname.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(pathname:, create_time:, modified_time:, raw: nil) ⇒ FileSystemEntry
constructor
A new instance of FileSystemEntry.
- #name ⇒ Object
Constructor Details
#initialize(pathname:, create_time:, modified_time:, raw: nil) ⇒ FileSystemEntry
Returns a new instance of FileSystemEntry.
5 6 7 8 9 10 |
# File 'lib/remi/extractor/file_system.rb', line 5 def initialize(pathname:, create_time:, modified_time:, raw: nil) @pathname = Pathname.new(pathname) @create_time = create_time @modified_time = modified_time @raw = raw end |
Instance Attribute Details
#create_time ⇒ Object (readonly)
Returns the value of attribute create_time.
12 13 14 |
# File 'lib/remi/extractor/file_system.rb', line 12 def create_time @create_time end |
#modified_time ⇒ Object (readonly)
Returns the value of attribute modified_time.
12 13 14 |
# File 'lib/remi/extractor/file_system.rb', line 12 def modified_time @modified_time end |
#pathname ⇒ Object (readonly)
Returns the value of attribute pathname.
12 13 14 |
# File 'lib/remi/extractor/file_system.rb', line 12 def pathname @pathname end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
12 13 14 |
# File 'lib/remi/extractor/file_system.rb', line 12 def raw @raw end |
Instance Method Details
#name ⇒ Object
14 15 16 |
# File 'lib/remi/extractor/file_system.rb', line 14 def name @pathname.basename.to_s end |