Sha256: 1fbf5a1811987f67de155094c3d9d888a19cdc9ef4c0b821aa5f1a66942fae04

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

class Quandora::Report
  def initialize(conn, api, id)
    @conn = conn
    @api = api
    @id = id
  end

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
quandora-0.3.0 lib/quandora/report.rb
quandora-0.1.0 lib/quandora/report.rb