Class: Aggro::LocalNode
- Inherits:
-
Struct
- Object
- Struct
- Aggro::LocalNode
- Defined in:
- lib/aggro/local_node.rb
Overview
Public: Represents the local aggro server node.
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
3 4 5 |
# File 'lib/aggro/local_node.rb', line 3 def id @id end |
Instance Method Details
#client ⇒ Object
4 5 6 |
# File 'lib/aggro/local_node.rb', line 4 def client @client ||= create_loopback_client end |
#endpoint ⇒ Object
8 9 10 |
# File 'lib/aggro/local_node.rb', line 8 def endpoint "tcp://*:#{Aggro.port}" end |
#publisher_endpoint ⇒ Object
12 13 14 |
# File 'lib/aggro/local_node.rb', line 12 def publisher_endpoint "tcp://*:#{Aggro.publisher_port}" end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/aggro/local_node.rb', line 16 def to_s id end |