Module: Mumuki::Bibliotheca

Defined in:
lib/mumuki/bibliotheca.rb,
lib/mumuki/bibliotheca/engine.rb,
lib/mumuki/bibliotheca/syncer.rb,
lib/mumuki/bibliotheca/version.rb

Defined Under Namespace

Classes: ApiSource, App, Engine

Constant Summary collapse

VERSION =
'9.23.0'

Class Method Summary collapse

Class Method Details

.api_syncer(json) ⇒ Object



24
25
26
# File 'lib/mumuki/bibliotheca/syncer.rb', line 24

def api_syncer(json)
  Mumukit::Sync::Syncer.new(ApiSource.new(json), api_inflators)
end

.history_syncer(user) ⇒ Object



20
21
22
# File 'lib/mumuki/bibliotheca/syncer.rb', line 20

def history_syncer(user)
  Mumukit::Sync::Syncer.new(history_store[user], history_inflators)
end

.upload_asset!(slug, name, content) ⇒ Object



16
17
18
# File 'lib/mumuki/bibliotheca/syncer.rb', line 16

def upload_asset!(slug, name, content)
  assets_uploader[slug, name, content]
end