lib/pragma/decorator/error.rb in pragma-2.4.0 vs lib/pragma/decorator/error.rb in pragma-2.5.0
- old
+ new
@@ -1,11 +1,17 @@
# frozen_string_literal: true
module Pragma
module Decorator
class Error < Pragma::Decorator::Base
+ include Pragma::Decorator::Type
+
property :error_type
property :error_message
property :meta
+
+ def type
+ :error
+ end
end
end
end