Module: Mumuki::Domain::Syncable
- Extended by:
- ActiveSupport::Concern
- Includes:
- Mumukit::Platform::Notifiable
- Included in:
- Content, Course, Invitation, Language, Organization, User
- Defined in:
- lib/mumuki/domain/syncable.rb,
lib/mumuki/domain/syncable/with_resource_fields.rb
Overview
Mixin for objects that may be treated as ‘Mumukit::Sync` resources
‘Syncable` objects also get `Mumukit::Platform::Notifiable` by free
Defined Under Namespace
Modules: WithResourceFields
Instance Method Summary collapse
-
#platform_class_name ⇒ Object
:warning: This method is required by ‘Mumukit::Platform::Notifiable#notify!`.
-
#sync_key ⇒ Object
Generates a sync key.
Instance Method Details
#platform_class_name ⇒ Object
:warning: This method is required by ‘Mumukit::Platform::Notifiable#notify!`
35 36 37 |
# File 'lib/mumuki/domain/syncable.rb', line 35 def platform_class_name sync_key_kind.as_module_name end |
#sync_key ⇒ Object
Generates a sync key
:warning: This method is required by ‘Mumukit::Sync::Syncer#import!`
12 13 14 |
# File 'lib/mumuki/domain/syncable.rb', line 12 def sync_key Mumukit::Sync.key sync_key_kind, sync_key_id end |