lib/bobot/events/referral.rb in bobot-4.10.0 vs lib/bobot/events/referral.rb in bobot-4.11.0

- old
+ new

@@ -17,9 +17,13 @@ end def type @referral['type'] end + + def ad_id + @referral['ad_id'] if @referral.key?('ad_id') + end end def referral @referral ||= Referral.new(@messaging['referral']) end