Sha256: c0953b7bc382661b6c98a3d70c5e2fd1a476ff0b72d7c9418706290fd4847c7c

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

require 'json'
module Tamashii
  module Agent
    class RequestPool
      class Response
        attr_accessor :ev_type, :ev_body, :id

        def initialize(ev_type, wrapped_body)
          @ev_type = ev_type
          data = JSON.parse(wrapped_body)
          @id = data["id"]
          @ev_body = data["ev_body"]
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tamashii-agent-0.1.11 lib/tamashii/agent/request_pool/response.rb
tamashii-agent-0.1.10 lib/tamashii/agent/request_pool/response.rb
tamashii-agent-0.1.9 lib/tamashii/agent/request_pool/response.rb
tamashii-agent-0.1.8 lib/tamashii/agent/request_pool/response.rb
tamashii-agent-0.1.7 lib/tamashii/agent/request_pool/response.rb