Class: Cuprum::Collections::Basic::Repository

Inherits:
Repository
  • Object
show all
Defined in:
lib/cuprum/collections/basic/repository.rb

Overview

A repository represents a group of Basic collections.

Instance Method Summary collapse

Methods inherited from Repository

#[], #add, #create, #find_or_create, #key?, #keys

Constructor Details

#initialize(data: {}) ⇒ Repository

Returns a new instance of Repository.

Parameters:

  • data (Hash<String, Object>) (defaults to: {})

    Seed data to use when building collections.



12
13
14
15
16
# File 'lib/cuprum/collections/basic/repository.rb', line 12

def initialize(data: {})
  super()

  @data = data
end