Class: M2R::ConnectionFactory::Options

Inherits:
Struct
  • Object
show all
Defined in:
lib/m2r/connection_factory.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sender_id, recv_addr, send_addr) ⇒ Options

Returns a new instance of Options.

Parameters:

  • sender_id (String, nil)

    ZMQ::IDENTITY option for response socket

  • recv_addr (String)

    ZMQ connection address. This is the send_spec option from Handler configuration in mongrel2.conf

  • send_addr (String)

    ZMQ connection address. This is the recv_spec option from Handler configuration in mongrel2.conf



16
17
18
# File 'lib/m2r/connection_factory.rb', line 16

def initialize(sender_id, recv_addr, send_addr)
  super
end

Instance Attribute Details

#recv_addrObject

Returns the value of attribute recv_addr

Returns:

  • (Object)

    the current value of recv_addr



10
11
12
# File 'lib/m2r/connection_factory.rb', line 10

def recv_addr
  @recv_addr
end

#send_addrObject

Returns the value of attribute send_addr

Returns:

  • (Object)

    the current value of send_addr



10
11
12
# File 'lib/m2r/connection_factory.rb', line 10

def send_addr
  @send_addr
end

#sender_idObject

Returns the value of attribute sender_id

Returns:

  • (Object)

    the current value of sender_id



10
11
12
# File 'lib/m2r/connection_factory.rb', line 10

def sender_id
  @sender_id
end