Class: MessengerClient::LocationTemplate

Inherits:
Object
  • Object
show all
Defined in:
lib/messenger_client/location_template.rb

Instance Method Summary collapse

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_jsonObject



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