Class: Rapid::Model::NoUpdateChannel

Inherits:
UpdateChannel show all
Defined in:
lib/ury_rapid/model/update_channel.rb

Overview

A null object signifying an absence of update channel

This sends an error on any attempt to use an update channel. If an update channel that works, but ignores any updates, is wanted, use DummyUpdateChannel.

Instance Method Summary collapse

Methods inherited from UpdateChannel

#notify_delete, #notify_update

Instance Method Details

#notify(object, _repr) ⇒ Object


58
59
60
# File 'lib/ury_rapid/model/update_channel.rb', line 58

def notify(object, _repr)
  fail(Rapid::Common::Exceptions::MissingUpdateChannel, object)
end