Sha256: c95d4caf10319f38d02c0e1d2f5448d9feb2d43323c3e95161174a5758ce94b1
Contents?: true
Size: 529 Bytes
Versions: 13
Compression:
Stored size: 529 Bytes
Contents
module Isomorfeus module Transport class RequestAgent def self.agents @_agents ||= {} end def self.get(object_id) agents[object_id] end def self.get!(object_id) agents.delete(object_id.to_s) end attr_reader :id attr_reader :promise attr_reader :request def initialize(request = nil) @id = object_id.to_s self.class.agents[@id] = self @promise = Promise.new @request = request end end end end
Version data entries
13 entries across 13 versions & 1 rubygems