class QPush::Web::Get

Public Class Methods

crons(s, c) click to toggle source
# File lib/qpush/web/get.rb, line 43
def crons(s, c)
  crons = Apis::Crons.new(s, c)
  crons.call.to_json
end
delays(s, e) click to toggle source
# File lib/qpush/web/get.rb, line 37
def delays(s, e)
  jobs = Get.all_delays[s, e]

  jobs.map! { |job| JSON.parse(job.first).merge(perform_at: job.last) }
end
heartbeat() click to toggle source
# File lib/qpush/web/get.rb, line 12
def heartbeat
  heart = Apis::Heart.new
  heart.call.to_json
end
history() click to toggle source
# File lib/qpush/web/get.rb, line 17
def history
  history = Apis::History.new
  history.call.to_json
end
jobs() click to toggle source
# File lib/qpush/web/get.rb, line 22
def jobs
  jobs = Apis::Jobs.new
  jobs.call.to_json
end
morgue(s, c) click to toggle source
# File lib/qpush/web/get.rb, line 32
def morgue(s, c)
  morgue = Apis::Morgue.new(s, c)
  morgue.call.to_json
end
retries(s, c) click to toggle source
# File lib/qpush/web/get.rb, line 27
def retries(s, c)
  retries = Apis::Retries.new(s, c)
  retries.call.to_json
end
stats() click to toggle source
# File lib/qpush/web/get.rb, line 7
def stats
  stats = Apis::Stats.new
  stats.call.to_json
end