class Doorkeepr::Rails::Entrance

Public Class Methods

new() click to toggle source
# File lib/doorkeepr/rails/entrance.rb, line 4
def initialize
  @entrance_config            = Doorkeepr.config.to_h
  @entrance_config[:interval] = 5
  @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

Public Instance Methods

config() click to toggle source
# File lib/doorkeepr/rails/entrance.rb, line 12
def config
  @entrance_config
end
service() click to toggle source
# File lib/doorkeepr/rails/entrance.rb, line 15
def service
  @entrance_service
end