coopdevs/timeoverflow

View on GitHub
app/services/operations/transfers/one_to_one.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Operations
  module Transfers
    class OneToOne < Base
      def transfers
        [build_transfer(
          source: source,
          destination: destination
        )]
      end

      private

      def source
        from.first
      end

      def destination
        to.first
      end
    end
  end
end