Class: MessengerClient::LocationTemplate
- Inherits:
-
Object
- Object
- MessengerClient::LocationTemplate
- Defined in:
- lib/messenger_client/location_template.rb
Instance Method Summary collapse
-
#initialize(text) ⇒ LocationTemplate
constructor
A new instance of LocationTemplate.
- #to_json ⇒ Object
Constructor Details
#initialize(text) ⇒ LocationTemplate
Returns a new instance of LocationTemplate.
3 4 5 |
# File 'lib/messenger_client/location_template.rb', line 3 def initialize(text) @text = text end |
Instance Method Details
#to_json ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/messenger_client/location_template.rb', line 7 def to_json { text: @text, quick_replies: { content_type: "location" } } end |