Class: BackgroundQueue::Worker::Environment::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/background_queue/worker/environment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host, port) ⇒ Server

Returns a new instance of Server.



86
87
88
89
# File 'lib/background_queue/worker/environment.rb', line 86

def initialize(host, port)
  @host = host
  @port = port
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



83
84
85
# File 'lib/background_queue/worker/environment.rb', line 83

def host
  @host
end

#portObject

Returns the value of attribute port.



84
85
86
# File 'lib/background_queue/worker/environment.rb', line 84

def port
  @port
end