class DingBot::Message::WholeActionCard
整体跳转ActionCard类型
Attributes
single_title[RW]
single_url[RW]
Public Class Methods
new(title='', text='', single_title='', single_url='', at_mobiles=[], btn_orientation='0')
click to toggle source
Calls superclass method
DingBot::Message::ActionCard::new
# File lib/dingbot/message/action_card.rb, line 59 def initialize(title='', text='', single_title='', single_url='', at_mobiles=[], btn_orientation='0') super(title, text, btn_orientation, at_mobiles) @single_title = single_title @single_url = single_url end
Public Instance Methods
body_params()
click to toggle source
Calls superclass method
DingBot::Message::ActionCard#body_params
# File lib/dingbot/message/action_card.rb, line 65 def body_params action_card = super[:actionCard].merge( { singleTitle: @single_title, singleURL: @single_url } ) super.merge(actionCard: action_card) end