Class: Rbgo::NetworkServiceFactory::Service
- Inherits:
-
Object
- Object
- Rbgo::NetworkServiceFactory::Service
- Defined in:
- lib/rbgo/network_service.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#task ⇒ Object
Returns the value of attribute task.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
11 12 13 |
# File 'lib/rbgo/network_service.rb', line 11 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
11 12 13 |
# File 'lib/rbgo/network_service.rb', line 11 def port @port end |
#task ⇒ Object
Returns the value of attribute task.
12 13 14 |
# File 'lib/rbgo/network_service.rb', line 12 def task @task end |
#type ⇒ Object
Returns the value of attribute type.
11 12 13 |
# File 'lib/rbgo/network_service.rb', line 11 def type @type end |
Instance Method Details
#alive? ⇒ Boolean
14 15 16 |
# File 'lib/rbgo/network_service.rb', line 14 def alive? service_routine.alive? end |
#stop ⇒ Object
18 19 20 21 22 |
# File 'lib/rbgo/network_service.rb', line 18 def stop sockets.each do |sock| sock.close end end |