Exception: TweetStream::ReconnectError

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (ReconnectError) initialize(timeout, retries)



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

- (Object) retries

Returns the value of attribute retries



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

def retries
  @retries
end

- (Object) timeout

Returns the value of attribute timeout



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

def timeout
  @timeout
end