Class: DingBot::Message::Base
- Inherits:
-
Object
- Object
- DingBot::Message::Base
- Defined in:
- lib/dingbot/message/base.rb
Overview
Base Message
Direct Known Subclasses
Instance Method Summary collapse
- #body_params ⇒ Object
- #msg_type ⇒ Object
-
#to_json ⇒ Object
Set http post body as json string.
Instance Method Details
#body_params ⇒ Object
20 21 22 23 24 |
# File 'lib/dingbot/message/base.rb', line 20 def body_params { msgtype: msg_type } end |
#msg_type ⇒ Object
16 17 18 |
# File 'lib/dingbot/message/base.rb', line 16 def msg_type # implement inside child end |
#to_json ⇒ Object
Set http post body as json string
27 28 29 |
# File 'lib/dingbot/message/base.rb', line 27 def to_json body_params.to_json end |