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.



62
63
64
65
# File 'lib/background_queue/worker/environment.rb', line 62

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

Instance Attribute Details

#hostObject

Returns the value of attribute host.



59
60
61
# File 'lib/background_queue/worker/environment.rb', line 59

def host
  @host
end

#portObject

Returns the value of attribute port.



60
61
62
# File 'lib/background_queue/worker/environment.rb', line 60

def port
  @port
end