Sha256: 3d2cae1540d76a513b628d6418e0e9fdedbbee7f949b366691bcc16355abf056

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module Mumukit::Sync::Store
  class Thesaurus < Mumukit::Sync::Store::Base
    def initialize(thesaurus_bridge)
      @thesaurus_bridge = thesaurus_bridge
    end

    def sync_keys
      @thesaurus_bridge.runners.map { |it| Mumukit::Sync.key(:language, it) }
    end

    def do_read(sync_key)
      return unless sync_key.kind == :language
      Mumukit::Bridge::Runner.new(runner_url).importable_info
    end

    def write_resource!(*)
      raise 'Read-only store'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mumukit-sync-0.1.1 lib/mumukit/sync/store/thesaurus.rb