Class: SlackRubyBotServer::Ping

Inherits:
Object
  • Object
show all
Defined in:
lib/slack-ruby-bot-server/ping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, options = {}) ⇒ Ping



9
10
11
12
13
# File 'lib/slack-ruby-bot-server/ping.rb', line 9

def initialize(client, options = {})
  @options = options
  @client = client
  @error_count = 0
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



5
6
7
# File 'lib/slack-ruby-bot-server/ping.rb', line 5

def client
  @client
end

#error_countObject (readonly)

Returns the value of attribute error_count.



7
8
9
# File 'lib/slack-ruby-bot-server/ping.rb', line 7

def error_count
  @error_count
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/slack-ruby-bot-server/ping.rb', line 6

def options
  @options
end

Instance Method Details

#start!Object



15
16
17
18
19
# File 'lib/slack-ruby-bot-server/ping.rb', line 15

def start!
  ::Async::Reactor.run do |task|
    run(task)
  end
end