Class: Operaton::Bpm::Client::Impl::RequestDto

Inherits:
Object
  • Object
show all
Defined in:
lib/operaton/bpm/client/impl/request_dto.rb

Overview

Mirrors org.operaton.bpm.client.impl.RequestDto

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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_jsonObject

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