Sha256: 6cab9b5edd7c763a10f6143b21338c3e7d446b7a06c5a13f179666869ff75527

Contents?: true

Size: 519 Bytes

Versions: 37

Compression:

Stored size: 519 Bytes

Contents

module Bobot
  module Event
    class Referral
      include Bobot::Event::Common

      class Referral
        def initialize(referral)
          @referral = referral
        end

        def ref
          @referral['ref']
        end

        def source
          @referral['source']
        end

        def type
          @referral['type']
        end
      end

      def referral
        @referral ||= Referral.new(@messaging['referral'])
      end

      def ref
        referral.ref
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
bobot-4.10.0 lib/bobot/events/referral.rb
bobot-4.9.0 lib/bobot/events/referral.rb
bobot-4.8.0 lib/bobot/events/referral.rb
bobot-4.7.0 lib/bobot/events/referral.rb
bobot-4.6.0 lib/bobot/events/referral.rb
bobot-4.5.0 lib/bobot/events/referral.rb
bobot-4.4.1 lib/bobot/events/referral.rb
bobot-4.4.0 lib/bobot/events/referral.rb
bobot-4.3.1 lib/bobot/events/referral.rb
bobot-4.3.0 lib/bobot/events/referral.rb
bobot-4.2.0 lib/bobot/events/referral.rb
bobot-4.1.0 lib/bobot/events/referral.rb
bobot-4.0.0 lib/bobot/events/referral.rb
bobot-3.7.9 lib/bobot/events/referral.rb
bobot-3.7.8 lib/bobot/events/referral.rb
bobot-3.7.6 lib/bobot/events/referral.rb
bobot-3.7.3 lib/bobot/events/referral.rb
bobot-3.7.2 lib/bobot/events/referral.rb
bobot-3.6.3 lib/bobot/events/referral.rb
bobot-3.6.0 lib/bobot/events/referral.rb