Module: Checkdin::Votes

Included in:
Client
Defined in:
lib/checkdin/votes.rb

Instance Method Summary collapse

Instance Method Details

#votes(options = {}) ⇒ Object

Get a list of all votes for the authenticating client.

Parameters:

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

Options Hash (options):

  • Integer (Object)

    :user_id - Only return votes for this user.

  • Integer (Object)

    :limit - The maximum number of records to return.



10
11
12
13
14
15
# File 'lib/checkdin/votes.rb', line 10

def votes(options={})
  response = connection.get do |req|
    req.url "votes", options
  end
  return_error_or_body(response)
end