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.
71 72 73 74 |
# File 'lib/dingbot/message/action_card.rb', line 71 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.
69 70 71 |
# File 'lib/dingbot/message/action_card.rb', line 69 def action_url @action_url end |
#title ⇒ Object
Returns the value of attribute title.
69 70 71 |
# File 'lib/dingbot/message/action_card.rb', line 69 def title @title end |
Instance Method Details
#format ⇒ Object
76 77 78 79 80 81 |
# File 'lib/dingbot/message/action_card.rb', line 76 def format { title: @title, actionURL: @action_url } end |