def _determine_path
      path = File.expand_path('../..', __FILE__)

      # Will be something like:
      # "/path/to/file.rb:47:in `method_name'"
      non_announcer_caller = caller.find { |c| !c.start_with?(path) }

      unless non_announcer_caller
        # This is not expected to occur.
        raise Errors::SubscriptionError, "Could not find non-Announcer caller"
      end

      non_announcer_caller
    end
def _determine_path
      path = File.expand_path('../..', __FILE__)

      # Will be something like:
      # "/path/to/file.rb:47:in `method_name'"
      non_announcer_caller = caller.find { |c| !c.start_with?(path) }

      unless non_announcer_caller
        # This is not expected to occur.
        raise Errors::SubscriptionError, "Could not find non-Announcer caller"
      end

      non_announcer_caller
    end
Determines the file path of the ruby code defining the subscription.
 It's important that this is called from within the initializer to get the
 desired effect.