Exception: Rapid::Common::Exceptions::MissingUpdateChannel

Inherits:
BadModel
  • Object
show all
Defined in:
lib/ury_rapid/common/exceptions.rb

Overview

Exception generated when an update is generated on a model object with no update channel configured

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model_object) ⇒ MissingUpdateChannel


59
60
61
# File 'lib/ury_rapid/common/exceptions.rb', line 59

def initialize(model_object)
  @model_object = model_object
end

Instance Attribute Details

#model_objectObject (readonly)

Returns the value of attribute model_object


68
69
70
# File 'lib/ury_rapid/common/exceptions.rb', line 68

def model_object
  @model_object
end

Instance Method Details

#to_sObject


63
64
65
66
# File 'lib/ury_rapid/common/exceptions.rb', line 63

def to_s
  "Object #{model_object.url} tried to notify an update," \
  'but has no updates channel.'
end