Module: Rabbit::Twitter::GLibAdapter
- Defined in:
- lib/rabbit/twitter.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
Instance Method Summary collapse
- #close_connection ⇒ Object
- #reconnect(server, port) ⇒ Object
- #reconnect_after(timeout) ⇒ Object
- #send_data(data) ⇒ Object
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
221 222 223 |
# File 'lib/rabbit/twitter.rb', line 221 def connection @connection end |
Instance Method Details
#close_connection ⇒ Object
235 236 237 |
# File 'lib/rabbit/twitter.rb', line 235 def close_connection @connection.close end |
#reconnect(server, port) ⇒ Object
231 232 233 |
# File 'lib/rabbit/twitter.rb', line 231 def reconnect(server, port) @connection.reconnect end |
#reconnect_after(timeout) ⇒ Object
226 227 228 229 |
# File 'lib/rabbit/twitter.rb', line 226 def reconnect_after(timeout) @reconnect_callback.call(timeout, @reconnect_retries) if @reconnect_callback @connection.reconnect(:after => timeout) end |
#send_data(data) ⇒ Object
222 223 224 |
# File 'lib/rabbit/twitter.rb', line 222 def send_data(data) @connection.send_data(data) end |