Class: Ace::Support::Items::Models::ScanResult
- Inherits:
-
Struct
- Object
- Struct
- Ace::Support::Items::Models::ScanResult
- Defined in:
- lib/ace/support/items/models/scan_result.rb
Overview
Value object representing a scan result for an item directory Holds path information, raw ID, and folder metadata
Instance Attribute Summary collapse
-
#dir_path ⇒ Object
Returns the value of attribute dir_path.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#folder_name ⇒ Object
Returns the value of attribute folder_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#slug ⇒ Object
Returns the value of attribute slug.
-
#special_folder ⇒ Object
Returns the value of attribute special_folder.
Instance Method Summary collapse
Instance Attribute Details
#dir_path ⇒ Object
Returns the value of attribute dir_path
9 10 11 |
# File 'lib/ace/support/items/models/scan_result.rb', line 9 def dir_path @dir_path end |
#file_path ⇒ Object
Returns the value of attribute file_path
9 10 11 |
# File 'lib/ace/support/items/models/scan_result.rb', line 9 def file_path @file_path end |
#folder_name ⇒ Object
Returns the value of attribute folder_name
9 10 11 |
# File 'lib/ace/support/items/models/scan_result.rb', line 9 def folder_name @folder_name end |
#id ⇒ Object
Returns the value of attribute id
9 10 11 |
# File 'lib/ace/support/items/models/scan_result.rb', line 9 def id @id end |
#slug ⇒ Object
Returns the value of attribute slug
9 10 11 |
# File 'lib/ace/support/items/models/scan_result.rb', line 9 def slug @slug end |
#special_folder ⇒ Object
Returns the value of attribute special_folder
9 10 11 |
# File 'lib/ace/support/items/models/scan_result.rb', line 9 def special_folder @special_folder end |
Instance Method Details
#to_h ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ace/support/items/models/scan_result.rb', line 18 def to_h { id: id, slug: slug, folder_name: folder_name, dir_path: dir_path, file_path: file_path, special_folder: special_folder } end |