Class: DingBot::Message::WholeActionCard
- Inherits:
-
ActionCard
- Object
- Base
- ActionCard
- DingBot::Message::WholeActionCard
- Defined in:
- lib/dingbot/message/action_card.rb
Overview
整体跳转ActionCard类型
Instance Attribute Summary collapse
-
#single_title ⇒ Object
Returns the value of attribute single_title.
-
#single_url ⇒ Object
Returns the value of attribute single_url.
Attributes inherited from ActionCard
#at_mobiles, #btn_orientation, #text, #title
Instance Method Summary collapse
- #body_params ⇒ Object
-
#initialize(title = '', text = '', single_title = '', single_url = '', at_mobiles = [], btn_orientation = '0') ⇒ WholeActionCard
constructor
A new instance of WholeActionCard.
Methods inherited from ActionCard
Methods inherited from Base
Constructor Details
#initialize(title = '', text = '', single_title = '', single_url = '', at_mobiles = [], btn_orientation = '0') ⇒ WholeActionCard
59 60 61 62 63 |
# 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 |
Instance Attribute Details
#single_title ⇒ Object
Returns the value of attribute single_title.
57 58 59 |
# File 'lib/dingbot/message/action_card.rb', line 57 def single_title @single_title end |
#single_url ⇒ Object
Returns the value of attribute single_url.
57 58 59 |
# File 'lib/dingbot/message/action_card.rb', line 57 def single_url @single_url end |
Instance Method Details
#body_params ⇒ Object
65 66 67 68 69 70 71 72 73 |
# 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 |