Class: BotMob::Connection
- Inherits:
-
Object
- Object
- BotMob::Connection
- Defined in:
- lib/bot_mob/connection.rb
Overview
## BotMob::Connection
The Connection is the point of contact between the Bot and the specified network
Direct Known Subclasses
Instance Attribute Summary collapse
-
#bot ⇒ Object
readonly
Returns the value of attribute bot.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #deliver(outbound_message, _options = {}) ⇒ Object
-
#initialize(bot, **options) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(bot, **options) ⇒ Connection
Returns a new instance of Connection.
9 10 11 12 |
# File 'lib/bot_mob/connection.rb', line 9 def initialize(bot, **) @bot = bot @options = end |
Instance Attribute Details
#bot ⇒ Object (readonly)
Returns the value of attribute bot.
7 8 9 |
# File 'lib/bot_mob/connection.rb', line 7 def bot @bot end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/bot_mob/connection.rb', line 7 def @options end |
Class Method Details
.setup(network, bot, options = {}) ⇒ Object
14 15 16 |
# File 'lib/bot_mob/connection.rb', line 14 def self.setup(network, bot, = {}) connection_delegate(network).new(bot, ) end |
Instance Method Details
#deliver(outbound_message, _options = {}) ⇒ Object
18 19 20 21 22 |
# File 'lib/bot_mob/connection.rb', line 18 def deliver(, = {}) # deliver(outbound_message, options) # noop end |