Sha256: 0740233583b7555690966ae36f5322ac427de39061b70a0a0137245dae075391

Contents?: true

Size: 253 Bytes

Versions: 1

Compression:

Stored size: 253 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qpush-0.1.4 lib/qpush/web/apis/heart.rb