Sha256: 5b36f942912230fcaff5e4fc4dc4c014345a6a34b426fc1379d7fec5d96516f5

Contents?: true

Size: 407 Bytes

Versions: 47

Compression:

Stored size: 407 Bytes

Contents

module Bobot
  module Event
    class Postback
      include Bobot::Event::Common

      def payload
        @messaging['postback']['payload']
      end

      def title
        @messaging['postback']['title']
      end

      def referral
        return if @messaging['postback']['referral'].nil?
        @referral ||= Referral::Referral.new(@messaging['postback']['referral'])
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
bobot-5.0.4 lib/bobot/events/postback.rb
bobot-5.0.3 lib/bobot/events/postback.rb
bobot-5.0.2 lib/bobot/events/postback.rb
bobot-5.0.1 lib/bobot/events/postback.rb
bobot-5.0.0 lib/bobot/events/postback.rb
bobot-4.15.0 lib/bobot/events/postback.rb
bobot-4.14.0 lib/bobot/events/postback.rb
bobot-4.13.1 lib/bobot/events/postback.rb
bobot-4.13.0 lib/bobot/events/postback.rb
bobot-4.11.0 lib/bobot/events/postback.rb
bobot-4.10.0 lib/bobot/events/postback.rb
bobot-4.9.0 lib/bobot/events/postback.rb
bobot-4.8.0 lib/bobot/events/postback.rb
bobot-4.7.0 lib/bobot/events/postback.rb
bobot-4.6.0 lib/bobot/events/postback.rb
bobot-4.5.0 lib/bobot/events/postback.rb
bobot-4.4.1 lib/bobot/events/postback.rb
bobot-4.4.0 lib/bobot/events/postback.rb
bobot-4.3.1 lib/bobot/events/postback.rb
bobot-4.3.0 lib/bobot/events/postback.rb