Class: Docs::StoreSubscriber

Inherits:
Subscriber
  • Object
show all
Defined in:
lib/docs/subscribers/store_subscriber.rb

Instance Method Summary collapse

Methods inherited from Subscriber

subscribe_to

Instance Method Details

#create(event) ⇒ Object


5
6
7
# File 'lib/docs/subscribers/store_subscriber.rb', line 5

def create(event)
  log "Create: #{format_path event.payload[:path]}"
end

#destroy(event) ⇒ Object


13
14
15
# File 'lib/docs/subscribers/store_subscriber.rb', line 13

def destroy(event)
  log "Delete: #{format_path event.payload[:path]}"
end

#update(event) ⇒ Object


9
10
11
# File 'lib/docs/subscribers/store_subscriber.rb', line 9

def update(event)
  log "Update: #{format_path event.payload[:path]}"
end