Class: Holistic::Document::File::Repository
- Inherits:
-
Object
- Object
- Holistic::Document::File::Repository
- Defined in:
- lib/holistic/document/file/repository.rb
Instance Attribute Summary collapse
-
#database ⇒ Object
readonly
Returns the value of attribute database.
Instance Method Summary collapse
-
#find(file_path) ⇒ Object
rename to ‘find_file`.
-
#initialize(database:) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(database:) ⇒ Repository
Returns a new instance of Repository.
7 8 9 |
# File 'lib/holistic/document/file/repository.rb', line 7 def initialize(database:) @database = database end |
Instance Attribute Details
#database ⇒ Object (readonly)
Returns the value of attribute database.
5 6 7 |
# File 'lib/holistic/document/file/repository.rb', line 5 def database @database end |
Instance Method Details
#find(file_path) ⇒ Object
rename to ‘find_file`
12 13 14 |
# File 'lib/holistic/document/file/repository.rb', line 12 def find(file_path) @database.find(file_path) end |