Class: BotMob::Networks::Roaming::Connection
- Inherits:
-
Connection
- Object
- Connection
- BotMob::Networks::Roaming::Connection
- Defined in:
- lib/bot_mob/networks/roaming/connection.rb
Overview
## BotMob::Networks::Roaming::Connection
The Connection is the point of contact between the Bot and the specified network
Instance Attribute Summary collapse
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
Attributes inherited from Connection
Instance Method Summary collapse
- #client ⇒ Object
- #connect ⇒ Object
- #deliver(outbound_message, _options = {}) ⇒ Object
- #reconnect ⇒ Object
- #refresh ⇒ Object
Methods inherited from Connection
Constructor Details
This class inherits a constructor from BotMob::Connection
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
9 10 11 |
# File 'lib/bot_mob/networks/roaming/connection.rb', line 9 def bot @bot end |
Instance Method Details
#client ⇒ Object
28 29 30 |
# File 'lib/bot_mob/networks/roaming/connection.rb', line 28 def client self end |
#connect ⇒ Object
16 17 18 |
# File 'lib/bot_mob/networks/roaming/connection.rb', line 16 def connect BotMob.logger.info 'Connecting... ' end |
#deliver(outbound_message, _options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/bot_mob/networks/roaming/connection.rb', line 11 def deliver(, = {}) BotMob.logger.info " Roaming Connection Sent: #{.inspect}" end |