Class: Operaton::Bpm::Client::Impl::RequestDto
- Inherits:
-
Object
- Object
- Operaton::Bpm::Client::Impl::RequestDto
- Defined in:
- lib/operaton/bpm/client/impl/request_dto.rb
Overview
Mirrors org.operaton.bpm.client.impl.RequestDto
Direct Known Subclasses
Task::Impl::Dto::BpmnErrorRequestDto, Task::Impl::Dto::CompleteRequestDto, Task::Impl::Dto::ExtendLockRequestDto, Task::Impl::Dto::FailureRequestDto, Task::Impl::Dto::LockRequestDto, Task::Impl::Dto::SetVariablesRequestDto, Topic::Impl::Dto::FetchAndLockRequestDto
Instance Attribute Summary collapse
-
#worker_id ⇒ Object
readonly
Returns the value of attribute worker_id.
Instance Method Summary collapse
-
#as_json ⇒ Object
Subclasses add their fields; nil values are omitted from the JSON payload (Jackson NON_NULL semantics where the Java DTO uses them).
-
#initialize(worker_id) ⇒ RequestDto
constructor
A new instance of RequestDto.
Constructor Details
#initialize(worker_id) ⇒ RequestDto
Returns a new instance of RequestDto.
11 12 13 |
# File 'lib/operaton/bpm/client/impl/request_dto.rb', line 11 def initialize(worker_id) @worker_id = worker_id end |
Instance Attribute Details
#worker_id ⇒ Object (readonly)
Returns the value of attribute worker_id.
9 10 11 |
# File 'lib/operaton/bpm/client/impl/request_dto.rb', line 9 def worker_id @worker_id end |
Instance Method Details
#as_json ⇒ Object
Subclasses add their fields; nil values are omitted from the JSON payload (Jackson NON_NULL semantics where the Java DTO uses them).
17 18 19 |
# File 'lib/operaton/bpm/client/impl/request_dto.rb', line 17 def as_json { "workerId" => worker_id } end |