Class: BotMob::Networks::Roaming::Connection

Inherits:
Connection
  • Object
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

Constructor Details

This class inherits a constructor from BotMob::Connection

Instance Attribute Details

#botObject (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

#clientObject



28
29
30
# File 'lib/bot_mob/networks/roaming/connection.rb', line 28

def client
  self
end

#connectObject



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

#reconnectObject



20
21
22
# File 'lib/bot_mob/networks/roaming/connection.rb', line 20

def reconnect
  BotMob.logger.info 'Reconnecting... '
end

#refreshObject



24
25
26
# File 'lib/bot_mob/networks/roaming/connection.rb', line 24

def refresh
  BotMob.logger.info 'Refreshing... '
end