Class: Quandora::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/quandora/report.rb

Instance Method Summary collapse

Constructor Details

#initialize(conn, api, id) ⇒ Report

Returns a new instance of Report.



2
3
4
5
6
# File 'lib/quandora/report.rb', line 2

def initialize(conn, api, id)
  @conn = conn
  @api = api
  @id = id
end

Instance Method Details

#askedObject



8
9
10
# File 'lib/quandora/report.rb', line 8

def asked
  resp = @conn.get("#{@api}/#{@id}/report/asked")
end

#most_voted_questionObject



16
17
18
# File 'lib/quandora/report.rb', line 16

def most_voted_question
  resp = @conn.get("#{@api}/#{@id}/report/mostVotedQuestion")
end

#users_reputation_changeObject



12
13
14
# File 'lib/quandora/report.rb', line 12

def users_reputation_change
  resp = @conn.get("#{@api}/#{@id}/report/usersByReputationChange")
end