Class: NetD::NetworkOperation
- Inherits:
-
Object
- Object
- NetD::NetworkOperation
- Defined in:
- lib/netd_core/netop.rb
Overview
encapsulates a currently running network operation Base Class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#thread ⇒ Object
Returns the value of attribute thread.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(_request) ⇒ NetworkOperation
constructor
A new instance of NetworkOperation.
- #to_s ⇒ Object
Constructor Details
#initialize(_request) ⇒ NetworkOperation
Returns a new instance of NetworkOperation.
14 |
# File 'lib/netd_core/netop.rb', line 14 def initialize(_request); end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
11 12 13 |
# File 'lib/netd_core/netop.rb', line 11 def request @request end |
#thread ⇒ Object
Returns the value of attribute thread.
12 13 14 |
# File 'lib/netd_core/netop.rb', line 12 def thread @thread end |
Instance Method Details
#close ⇒ Object
20 21 22 |
# File 'lib/netd_core/netop.rb', line 20 def close @thread.thread_variable_set('stop', true) end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/netd_core/netop.rb', line 16 def to_s @request.values.join('|') end |