class MessengerClient::LocationTemplate

Public Class Methods

new(text) click to toggle source
# File lib/messenger_client/location_template.rb, line 3
def initialize(text)
  @text = text
end

Public Instance Methods

to_json() click to toggle source
# File lib/messenger_client/location_template.rb, line 7
def to_json
  {
    text: @text,
    quick_replies: {
      content_type: "location"
    }
  }
end