Sha256: 0629fa83429f7876e97a209228d9af4aa29f83c30a2cb7b3a4d115e5264ff8f2

Contents?: true

Size: 391 Bytes

Versions: 1

Compression:

Stored size: 391 Bytes

Contents

module Kamerling class Result < UUIDEntity
  attribute :addr,   Addr
  attribute :client, Client
  attribute :data,   String
  attribute :task,   Task

  def to_h
    super
      .reject { |key, _| key == :addr   }.merge(addr.to_h)
      .reject { |key, _| key == :client }.merge(client_uuid: client.uuid)
      .reject { |key, _| key == :task   }.merge task_uuid:   task.uuid
  end
end end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kamerling-0.0.2 lib/kamerling/result.rb