Class: BotMob::Development::InboundMessage

Inherits:
InboundMessage show all
Defined in:
lib/bot_mob/development/inbound_message.rb

Instance Attribute Summary

Attributes inherited from InboundMessage

#network, #params, #text

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from InboundMessage

#arguments

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