Class: SlackRubyBotServer::Ping
- Inherits:
-
Object
- Object
- SlackRubyBotServer::Ping
- Defined in:
- lib/slack-ruby-bot-server/ping.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#error_count ⇒ Object
readonly
Returns the value of attribute error_count.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(client, options = {}) ⇒ Ping
constructor
A new instance of Ping.
- #start! ⇒ Object
Constructor Details
#initialize(client, options = {}) ⇒ Ping
Returns a new instance of Ping.
9 10 11 12 13 |
# File 'lib/slack-ruby-bot-server/ping.rb', line 9 def initialize(client, = {}) @options = @client = client @error_count = 0 end |
Instance Attribute Details
#client ⇒ Object (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_count ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/slack-ruby-bot-server/ping.rb', line 6 def @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 |