Class: ArkEcosystem::Client::API::Two::Votes
- Defined in:
- lib/arkecosystem/client/api/two/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.
17 18 19 |
# File 'lib/arkecosystem/client/api/two/votes.rb', line 17 def all(parameters = {}) @client.get('votes', parameters) end |
#show(id) ⇒ Faraday::Response
Get the vote by the given id.
26 27 28 |
# File 'lib/arkecosystem/client/api/two/votes.rb', line 26 def show(id) @client.get("votes/#{id}") end |