Class: ArkEcosystem::Client::API::Two::Peers
- Defined in:
- lib/arkecosystem/client/api/two/peers.rb
Overview
Methods for the Peers API
Instance Method Summary collapse
-
#all(parameters = {}) ⇒ Faraday::Response
Get all peers.
-
#show(ip_addr) ⇒ Faraday::Response
Get the peer by the given ip.
Methods inherited from Base
Constructor Details
This class inherits a constructor from ArkEcosystem::Client::API::Base
Instance Method Details
#all(parameters = {}) ⇒ Faraday::Response
Get all peers.
17 18 19 |
# File 'lib/arkecosystem/client/api/two/peers.rb', line 17 def all(parameters = {}) @client.get('peers', parameters) end |
#show(ip_addr) ⇒ Faraday::Response
Get the peer by the given ip.
26 27 28 |
# File 'lib/arkecosystem/client/api/two/peers.rb', line 26 def show(ip_addr) @client.get("peers/#{ip_addr}") end |