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