Method: Vedeu::Repositories::Repository#initialize

Defined in:
lib/vedeu/repositories/repository.rb

#initialize(model = nil, storage = {}) ⇒ Vedeu::Repositories::Repository

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Vedeu::Repositories::Repository.

Parameters:

  • model (Class) (defaults to: nil)
  • storage (Class|Hash) (defaults to: {})


36
37
38
39
# File 'lib/vedeu/repositories/repository.rb', line 36

def initialize(model = nil, storage = {})
  @model   = model
  @storage = storage
end