class Sequencer
  class Unit
    module Import
      module Zendesk
        module Ticket
          module Comment
            class UserID < Sequencer::Unit::Base

              uses :resource, :user_map
              provides :user_id

              def process
                state.provide(:user_id) do
                  user_map.fetch(resource.author_id, 1)
                end
              end
            end
          end
        end
      end
    end
  end
end
