Class: Gelatin::Node

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

Overview

Node is a PORO

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(addr) ⇒ Node

Returns a new instance of Node.



6
7
8
# File 'lib/gelatin/node.rb', line 6

def initialize(addr)
  @addr = addr
end

Instance Attribute Details

#addrObject

Returns the value of attribute addr.



4
5
6
# File 'lib/gelatin/node.rb', line 4

def addr
  @addr
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/gelatin/node.rb', line 10

def to_s
  @addr
end