Class: WAB::IO::Call

Inherits:
Object
  • Object
show all
Defined in:
lib/wab/io/call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeout = 2.0) ⇒ Call

Returns a new instance of Call.



12
13
14
15
16
# File 'lib/wab/io/call.rb', line 12

def initialize(timeout=2.0)
  @rid = rid
  @giveup = Time.now + timeout
  @thread = Thread.current
end

Instance Attribute Details

#giveupObject

Returns the value of attribute giveup.



10
11
12
# File 'lib/wab/io/call.rb', line 10

def giveup
  @giveup
end

#resultObject

Returns the value of attribute result.



7
8
9
# File 'lib/wab/io/call.rb', line 7

def result
  @result
end

#ridObject

Returns the value of attribute rid.



9
10
11
# File 'lib/wab/io/call.rb', line 9

def rid
  @rid
end

#threadObject

Returns the value of attribute thread.



8
9
10
# File 'lib/wab/io/call.rb', line 8

def thread
  @thread
end