Sha256: 141d5147a6e51c3d2bd936847797c458918317545c1aabc9b01b71dd48977f8e
Contents?: true
Size: 357 Bytes
Versions: 3
Compression:
Stored size: 357 Bytes
Contents
module Ray class Request def initialize(uuid, payloads, meta = {}) @uuid = uuid @payloads = payloads @meta = meta end def to_json {uuid:@uuid, payloads:payload_contents, meta: @meta}.to_json end def payload_contents return @payloads.map do |payload| payload.to_hash end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-ray-0.4.1 | lib/ray/request.rb |
ruby-ray-0.4.0 | lib/ray/request.rb |
ruby-ray-0.3.0 | lib/ray/request.rb |