Class: QPush::Web::Get

Inherits:
Object
  • Object
show all
Defined in:
lib/qpush/web/get.rb

Class Method Summary collapse

Class Method Details

.crons(s, c) ⇒ Object



43
44
45
46
# 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) ⇒ Object



37
38
39
40
41
# 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

.heartbeatObject



12
13
14
15
# File 'lib/qpush/web/get.rb', line 12

def heartbeat
  heart = Apis::Heart.new
  heart.call.to_json
end

.historyObject



17
18
19
20
# File 'lib/qpush/web/get.rb', line 17

def history
  history = Apis::History.new
  history.call.to_json
end

.jobsObject



22
23
24
25
# File 'lib/qpush/web/get.rb', line 22

def jobs
  jobs = Apis::Jobs.new
  jobs.call.to_json
end

.morgue(s, c) ⇒ Object



32
33
34
35
# 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) ⇒ Object



27
28
29
30
# File 'lib/qpush/web/get.rb', line 27

def retries(s, c)
  retries = Apis::Retries.new(s, c)
  retries.call.to_json
end

.statsObject



7
8
9
10
# File 'lib/qpush/web/get.rb', line 7

def stats
  stats = Apis::Stats.new
  stats.call.to_json
end