Class: BotMob::Development::InboundMessage
- Inherits:
-
InboundMessage
- Object
- InboundMessage
- BotMob::Development::InboundMessage
- Defined in:
- lib/bot_mob/development/inbound_message.rb
Instance Attribute Summary
Attributes inherited from InboundMessage
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params) ⇒ InboundMessage
constructor
A new instance of InboundMessage.
Methods inherited from InboundMessage
Constructor Details
#initialize(params) ⇒ InboundMessage
4 5 6 7 |
# File 'lib/bot_mob/development/inbound_message.rb', line 4 def initialize(params) @text = params[:text] @network = params[:network] end |
Class Method Details
.parse(**params) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/bot_mob/development/inbound_message.rb', line 9 def self.parse(**params) new({ network: params[:network], text: params[:text] }) end |