Class: DingBot::Message::ActionBtn
- Inherits:
-
Object
- Object
- DingBot::Message::ActionBtn
- Defined in:
- lib/dingbot/message/action_card.rb
Overview
跳转按钮
Instance Attribute Summary collapse
-
#action_url ⇒ Object
Returns the value of attribute action_url.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
- #format ⇒ Object
-
#initialize(title = '', action_url = '') ⇒ ActionBtn
constructor
A new instance of ActionBtn.
Constructor Details
#initialize(title = '', action_url = '') ⇒ ActionBtn
Returns a new instance of ActionBtn.
95 96 97 98 |
# File 'lib/dingbot/message/action_card.rb', line 95 def initialize(title='', action_url='') @title = title @action_url = action_url end |
Instance Attribute Details
#action_url ⇒ Object
Returns the value of attribute action_url.
93 94 95 |
# File 'lib/dingbot/message/action_card.rb', line 93 def action_url @action_url end |
#title ⇒ Object
Returns the value of attribute title.
93 94 95 |
# File 'lib/dingbot/message/action_card.rb', line 93 def title @title end |
Instance Method Details
#format ⇒ Object
100 101 102 103 104 105 |
# File 'lib/dingbot/message/action_card.rb', line 100 def format { title: @title, actionURL: @action_url } end |