Class: ArkEcosystem::Client::API::Two::Delegates
- Defined in:
- lib/arkecosystem/client/api/two/delegates.rb
Overview
Methods for the Delegates API
Instance Method Summary collapse
-
#all(parameters = {}) ⇒ Faraday::Response
Get all delegates.
-
#blocks(id, parameters = {}) ⇒ Faraday::Response
Get the blocks for the given delegate.
-
#show(id) ⇒ Faraday::Response
Get the delegate by the given id.
-
#voters(id, parameters = {}) ⇒ Faraday::Response
Get the votes for the given delegate.
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 delegates.
17 18 19 |
# File 'lib/arkecosystem/client/api/two/delegates.rb', line 17 def all(parameters = {}) @client.get('delegates', parameters) end |
#blocks(id, parameters = {}) ⇒ Faraday::Response
Get the blocks for the given delegate.
36 37 38 |
# File 'lib/arkecosystem/client/api/two/delegates.rb', line 36 def blocks(id, parameters = {}) @client.get("delegates/#{id}/blocks", parameters) end |
#show(id) ⇒ Faraday::Response
Get the delegate by the given id.
26 27 28 |
# File 'lib/arkecosystem/client/api/two/delegates.rb', line 26 def show(id) @client.get("delegates/#{id}") end |
#voters(id, parameters = {}) ⇒ Faraday::Response
Get the votes for the given delegate.
46 47 48 |
# File 'lib/arkecosystem/client/api/two/delegates.rb', line 46 def voters(id, parameters = {}) @client.get("delegates/#{id}/voters", parameters) end |