Class: ArkEcosystem::Client::API::Votes

Inherits:
Base
  • Object
show all
Defined in:
lib/arkecosystem/client/api/votes.rb

Overview

Methods for the Votes API

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from ArkEcosystem::Client::API::Base

Instance Method Details

#all(parameters = {}) ⇒ Faraday::Response

Get all votes.

Parameters:

  • parameters (Hash) (defaults to: {})

Returns:

  • (Faraday::Response)


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.

Parameters:

  • id (String)

Returns:

  • (Faraday::Response)


22
23
24
# File 'lib/arkecosystem/client/api/votes.rb', line 22

def show(id)
  @client.get("votes/#{id}")
end