Sha256: 8086c155eaaf42b7aef3cfbac94283a767b1c7de28f6cc8ca5cee28bc12bb3d7

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

module Doorkeepr
  module Rails
    class Entrance
      def initialize
        @entrance_config            = Doorkeepr.config.to_h
        @entrance_config[:interval] = 15
        @entrance_config[:timeout]  = 3
        @entrance_config[:function] = "entrance"
        @entrance_config[:zk_path]  = Doorkeepr.config.to_h[:entrance]
        @entrance_service           = ::Nerve::Easy::Service.new @entrance_config
      end
      def config
        @entrance_config
      end
      def service
        @entrance_service
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
doorkeepr-rails-0.1.3 lib/doorkeepr/rails/entrance.rb
doorkeepr-rails-0.1.2 lib/doorkeepr/rails/entrance.rb
doorkeepr-rails-0.1.1 lib/doorkeepr/rails/entrance.rb
doorkeepr-rails-0.1.0 lib/doorkeepr/rails/entrance.rb