Class: Operaton::Bpm::Client::Impl::EngineRestExceptionDto
- Inherits:
-
Object
- Object
- Operaton::Bpm::Client::Impl::EngineRestExceptionDto
- Defined in:
- lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb
Overview
Mirrors org.operaton.bpm.client.impl.EngineRestExceptionDto
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
11 12 13 |
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 11 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
11 12 13 |
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 11 def @message end |
#type ⇒ Object
Returns the value of attribute type.
11 12 13 |
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 11 def type @type end |
Class Method Details
.from_json(hash) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 13 def self.from_json(hash) dto = new dto. = hash["message"] dto.type = hash["type"] dto.code = hash["code"] dto end |
Instance Method Details
#to_rest_exception ⇒ Object
21 22 23 |
# File 'lib/operaton/bpm/client/impl/engine_rest_exception_dto.rb', line 21 def to_rest_exception RestException.new(, type, code) end |