Sha256: 4dc4ac7f9bc946e316ef1842acee26f9c376922a5d740fb9b675d725ffb1c57a

Contents?: true

Size: 242 Bytes

Versions: 14

Compression:

Stored size: 242 Bytes

Contents

module MessengerClient
  class LocationTemplate
    def initialize(text)
      @text = text
    end

    def to_json
      {
        text: @text,
        quick_replies: {
          content_type: "location"
        }
      }
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
messenger_client-0.2.3 lib/messenger_client/location_template.rb
messenger_client-0.2.2 lib/messenger_client/location_template.rb
messenger_client-0.2.1 lib/messenger_client/location_template.rb
messenger_client-0.2.0 lib/messenger_client/location_template.rb
messenger_client-0.1.9 lib/messenger_client/location_template.rb
messenger_client-0.1.8 lib/messenger_client/location_template.rb
messenger_client-0.1.7 lib/messenger_client/location_template.rb
messenger_client-0.1.6 lib/messenger_client/location_template.rb
messenger_client-0.1.5 lib/messenger_client/location_template.rb
messenger_client-0.1.4 lib/messenger_client/location_template.rb
messenger_client-0.1.3 lib/messenger_client/location_template.rb
messenger_client-0.1.2 lib/messenger_client/location_template.rb
messenger_client-0.1.1 lib/messenger_client/location_template.rb
messenger_client-0.1.0 lib/messenger_client/location_template.rb