Sha256: 193a4e667ef3a80b887946f18f23b6c1f56e2d38cf6ab0d1348cd3d6fd9e2eaf

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

module QPush
  module Web
    module Apis
      class Heart
        def call
          heart = Web.redis { |c| c.get(Web.keys[:heart]) }
          { status: !heart.nil?, namespace: 'default' }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qpush-0.1.10 lib/qpush/web/apis/heart.rb
qpush-0.1.8 lib/qpush/web/apis/heart.rb