Class: Holistic::Document::File::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/holistic/document/file/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#databaseObject (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