struct

Nous::PeerInfo

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(ip : String, port : Int32, gossip_port : Int32, last_seen : Time, fitness : Float64 = 0.0, node_id : String | Nil = nil, genome_hash : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

fitness
Source
fitness=(fitness : Float64)
Source
genome_hash
Source
genome_hash=(genome_hash : String | Nil)
Source
gossip_port
Source
gossip_port=(gossip_port : Int32)
Source
ip=(ip : String)
Source
last_seen
Source
last_seen=(last_seen : Time)
Source
node_id
Source
node_id=(node_id : String | Nil)
Source
port
Source
port=(port : Int32)
Source