Class: Mumukit::Sync::Store::Json
- Defined in:
- lib/mumukit/sync/store/json.rb
Instance Method Summary collapse
- #do_read(_sync_key) ⇒ Object
-
#initialize(json) ⇒ Json
constructor
A new instance of Json.
- #sync_keys ⇒ Object
- #write_resource! ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(json) ⇒ Json
Returns a new instance of Json.
3 4 5 |
# File 'lib/mumukit/sync/store/json.rb', line 3 def initialize(json) @json = json end |
Instance Method Details
#do_read(_sync_key) ⇒ Object
11 12 13 |
# File 'lib/mumukit/sync/store/json.rb', line 11 def do_read(_sync_key) @json end |
#sync_keys ⇒ Object
7 8 9 |
# File 'lib/mumukit/sync/store/json.rb', line 7 def sync_keys Mumukit::Sync::Store.non_discoverable! end |
#write_resource! ⇒ Object
15 16 17 |
# File 'lib/mumukit/sync/store/json.rb', line 15 def write_resource!(*) Mumukit::Sync::Store.read_only! end |