Exception: TweetStream::ReconnectError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/tweetstream.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(timeout, retries) ⇒ ReconnectError

Returns a new instance of ReconnectError.



10
11
12
13
14
# File 'lib/tweetstream.rb', line 10

def initialize(timeout, retries)
  self.timeout = timeout
  self.retries = retries
  super("Failed to reconnect after #{retries} tries.")
end

Instance Attribute Details

#retriesObject

Returns the value of attribute retries.



9
10
11
# File 'lib/tweetstream.rb', line 9

def retries
  @retries
end

#timeoutObject

Returns the value of attribute timeout.



9
10
11
# File 'lib/tweetstream.rb', line 9

def timeout
  @timeout
end