Module: Nis::Endpoint::Node::PeerList

Included in:
Nis
Defined in:
lib/nis/endpoint/node/peer_list.rb

Instance Method Summary collapse

Instance Method Details

#node_peerlist_activeArray <Nis::Struct::NodeInfo>


19
20
21
22
23
# File 'lib/nis/endpoint/node/peer_list.rb', line 19

def node_peerlist_active
  request!(:get, '/node/peer-list/active') do |res|
    res[:data].map { |n| Nis::Struct::NodeInfo.build(n) }
  end
end

#node_peerlist_allNis::Struct::NodeCollection


5
6
7
# File 'lib/nis/endpoint/node/peer_list.rb', line 5

def node_peerlist_all
  Nis::Struct::NodeCollection.build request!(:get, '/node/peer-list/all')
end

#node_peerlist_reachableArray <Nis::Struct::NodeInfo>


11
12
13
14
15
# File 'lib/nis/endpoint/node/peer_list.rb', line 11

def node_peerlist_reachable
  request!(:get, '/node/peer-list/reachable') do |res|
    res[:data].map { |n| Nis::Struct::NodeInfo.build(n) }
  end
end