Class: WAB::IO::Call
- Inherits:
-
Object
- Object
- WAB::IO::Call
- Defined in:
- lib/wab/io/call.rb
Instance Attribute Summary collapse
-
#giveup ⇒ Object
Returns the value of attribute giveup.
-
#result ⇒ Object
Returns the value of attribute result.
-
#rid ⇒ Object
Returns the value of attribute rid.
-
#thread ⇒ Object
Returns the value of attribute thread.
Instance Method Summary collapse
-
#initialize(timeout = 2.0) ⇒ Call
constructor
A new instance of Call.
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
#giveup ⇒ Object
Returns the value of attribute giveup.
10 11 12 |
# File 'lib/wab/io/call.rb', line 10 def giveup @giveup end |
#result ⇒ Object
Returns the value of attribute result.
7 8 9 |
# File 'lib/wab/io/call.rb', line 7 def result @result end |
#rid ⇒ Object
Returns the value of attribute rid.
9 10 11 |
# File 'lib/wab/io/call.rb', line 9 def rid @rid end |
#thread ⇒ Object
Returns the value of attribute thread.
8 9 10 |
# File 'lib/wab/io/call.rb', line 8 def thread @thread end |