Class: MessageQuickly::Messaging::AccountUnlinkButton
- Defined in:
- lib/message_quickly/messaging/account_unlink_button.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Attributes inherited from Button
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ AccountUnlinkButton
constructor
A new instance of AccountUnlinkButton.
- #to_hash ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ AccountUnlinkButton
Returns a new instance of AccountUnlinkButton.
7 8 9 10 |
# File 'lib/message_quickly/messaging/account_unlink_button.rb', line 7 def initialize(params = {}) params['type'] ||= 'account_unlink' super(params) end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/message_quickly/messaging/account_unlink_button.rb', line 5 def url @url end |
Instance Method Details
#to_hash ⇒ Object
12 13 14 |
# File 'lib/message_quickly/messaging/account_unlink_button.rb', line 12 def to_hash { type: type } end |