Class: Equity::Node::Static

Inherits:
Node
  • Object
show all
Defined in:
lib/equity/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#counter=(value) ⇒ Object (writeonly)

Sets the attribute counter

Parameters:

  • value —

    the value to set the attribute counter to.



80
81
82
# File 'lib/equity/node.rb', line 80

def counter=(value)
  @counter = value
end

Instance Method Details

#connect(client) ⇒ Object

Raises:

  • (RuntimeError)


86
87
88
# File 'lib/equity/node.rb', line 86

def connect(client)
  raise(RuntimeError, 'static nodes cannot be connected')
end

#connected=(bool) ⇒ Object



82
83
84
# File 'lib/equity/node.rb', line 82

def connected=(bool)
  @client = bool
end

#disconnect ⇒ Object

Raises:

  • (RuntimeError)


90
91
92
# File 'lib/equity/node.rb', line 90

def disconnect
  raise(RuntimeError, 'static nodes cannot be disconnected')
end

#owns_socket?(socket) ⇒ Boolean

Returns:

  • (Boolean)


98
99
100
# File 'lib/equity/node.rb', line 98

def owns_socket?(socket)
  false
end

#sockets ⇒ Object



94
95
96
# File 'lib/equity/node.rb', line 94

def sockets
  []
end