Class: Quandora::Report
- Inherits:
-
Object
- Object
- Quandora::Report
- Defined in:
- lib/quandora/report.rb
Instance Method Summary collapse
- #asked ⇒ Object
-
#initialize(conn, api, id) ⇒ Report
constructor
A new instance of Report.
- #most_voted_question ⇒ Object
- #users_reputation_change ⇒ Object
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
#asked ⇒ Object
8 9 10 |
# File 'lib/quandora/report.rb', line 8 def asked resp = @conn.get("#{@api}/#{@id}/report/asked") end |
#most_voted_question ⇒ Object
16 17 18 |
# File 'lib/quandora/report.rb', line 16 def most_voted_question resp = @conn.get("#{@api}/#{@id}/report/mostVotedQuestion") end |
#users_reputation_change ⇒ Object
12 13 14 |
# File 'lib/quandora/report.rb', line 12 def users_reputation_change resp = @conn.get("#{@api}/#{@id}/report/usersByReputationChange") end |