Exception: Ecoportal::API::Common::Content::DoubleModel::DoubleDoc::LinkableDoc::UnlinkedModel
- Inherits:
-
StandardError
- Object
- StandardError
- Ecoportal::API::Common::Content::DoubleModel::DoubleDoc::LinkableDoc::UnlinkedModel
- Defined in:
- lib/ecoportal/api/common/content/double_model/double_doc/linkable_doc.rb
Instance Method Summary collapse
-
#initialize(msg = "Something went wrong when linking the document.", from: nil, key: nil) ⇒ UnlinkedModel
constructor
A new instance of UnlinkedModel.
Constructor Details
#initialize(msg = "Something went wrong when linking the document.", from: nil, key: nil) ⇒ UnlinkedModel
Returns a new instance of UnlinkedModel.
9 10 11 12 13 14 15 |
# File 'lib/ecoportal/api/common/content/double_model/double_doc/linkable_doc.rb', line 9 def initialize(msg = "Something went wrong when linking the document.", from: nil, key: nil) msg ||= '' msg << " From: #{from}." if from msg << " key: #{key}." if key super(msg) end |