Class: BotMob::Networks::Roaming::Connection
- Inherits:
-
Connection
- Object
- Connection
- BotMob::Networks::Roaming::Connection
show all
- 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
Attributes inherited from Connection
#options
Instance Method Summary
collapse
Methods inherited from Connection
#initialize, setup
Instance Attribute Details
#bot ⇒ Object
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(outbound_message, _options = {})
BotMob.logger.info " Roaming Connection Sent: #{outbound_message.inspect}"
outbound_message
end
|
#reconnect ⇒ Object
20
21
22
|
# File 'lib/bot_mob/networks/roaming/connection.rb', line 20
def reconnect
BotMob.logger.info 'Reconnecting... '
end
|
#refresh ⇒ Object
24
25
26
|
# File 'lib/bot_mob/networks/roaming/connection.rb', line 24
def refresh
BotMob.logger.info 'Refreshing... '
end
|