Class: ArkEcosystem::Client::API::Votes
- Defined in:
- lib/arkecosystem/client/api/votes.rb
Overview
Methods for the Votes API
Instance Method Summary collapse
-
#all(parameters = {}) ⇒ Faraday::Response
Get all votes.
-
#show(id) ⇒ Faraday::Response
Get the vote by the given id.
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 votes.
13 14 15 |
# File 'lib/arkecosystem/client/api/votes.rb', line 13 def all(parameters = {}) @client.get('votes', parameters) end |
#show(id) ⇒ Faraday::Response
Get the vote by the given id.
22 23 24 |
# File 'lib/arkecosystem/client/api/votes.rb', line 22 def show(id) @client.get("votes/#{id}") end |