Class: QPush::Web::Apis::Heart
- Inherits:
-
Object
- Object
- QPush::Web::Apis::Heart
- Defined in:
- lib/qpush/web/apis/heart.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 |
# File 'lib/qpush/web/apis/heart.rb', line 5 def call heart = Web.redis { |c| c.get(Web.keys[:heart]) } { status: !heart.nil?, namespace: 'default' } end |