Sha256: a1b89f9fa7c2f667bb6c84c1bd96e49d626676ef8766cbfeeb73fa6feaf809f4

Contents?: true

Size: 549 Bytes

Versions: 8

Compression:

Stored size: 549 Bytes

Contents

module Tr3llo
  module Presenter
    module Card
      class MovePresenter
        def initialize(interface)
          @interface = interface
        end

        def prompt_for_list_id(lists)
          interface.input.select(
            'Choose the list to be moved to',
            lists.map { |list| [list[:name], list[:id]] }.to_h
          )
        end

        private

        attr_reader :interface

        def present_list(list)
          interface.puts "[#{list[:id].labelize}] - #{list[:name]}"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
3llo-0.3.1 lib/3llo/presenter/card/move.rb
3llo-0.3.0 lib/3llo/presenter/card/move.rb
3llo-0.2.0 lib/3llo/presenter/card/move.rb
3llo-0.1.12 lib/3llo/presenter/card/move.rb
3llo-0.1.11 lib/3llo/presenter/card/move.rb
3llo-0.1.10 lib/3llo/presenter/card/move.rb
3llo-0.1.9 lib/3llo/presenter/card/move.rb
3llo-0.1.9.beta lib/3llo/presenter/card/move.rb