class PipeRpc::ResultResponse

Attributes

id[R]
result[R]

Public Class Methods

new(args = {}) click to toggle source
# File lib/pipe_rpc/result_response.rb, line 3
def initialize(args = {})
  @result = args.fetch(:result)
  @id = args.fetch(:id)
end

Public Instance Methods

to_h() click to toggle source
# File lib/pipe_rpc/result_response.rb, line 10
def to_h
  { id: id, result: result }
end