Module: Kagaribi

Defined in:
lib/kagaribi.rb,
lib/kagaribi/version.rb,
lib/kagaribi/collection.rb

Defined Under Namespace

Classes: Collection, Error

Constant Summary collapse

VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.collection(collection_name, database_id: nil, logger: nil) ⇒ Kagaribi::Collection

Parameters:

  • collection_name (String)
  • database_id (String, nil) (defaults to: nil)

    Identifier for a Firestore database. If not present, the default database of the project is used.

  • logger (Logger) (defaults to: nil)

    default is STDOUT Logger

Returns:



17
18
19
# File 'lib/kagaribi.rb', line 17

def self.collection(collection_name, database_id: nil, logger: nil)
  Collection.new(collection_name, database_id: database_id, logger: logger)
end