Class: QPush::Web::Apis::Heart

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

Instance Method Summary collapse

Instance Method Details

#callObject



5
6
7
8
# File 'lib/qpush/web/apis/heart.rb', line 5

def call
  heart = Web.redis { |c| c.get(QPush.keys.heart) }
  { status: !heart.nil?, namespace: QPush.config.namespace }
end