Sha256: e4c9f6c6fb41367f20a092206dceb5dad3f43b4af3b93a6244f556e4ee7a5c73

Contents?: true

Size: 525 Bytes

Versions: 9

Compression:

Stored size: 525 Bytes

Contents

module Tr3llo
  module Command
    module List
      class ListCommand
        def initialize(board_id)
          @board_id = board_id
        end

        def execute
          Tr3llo::Presenter::List::ListPresenter
            .new(interface)
            .print!(list_lists)
        end

        private

        attr_reader :board_id

        def list_lists
          API::List.find_all_by_board(board_id)
        end

        def interface
          $container.resolve(:interface)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
3llo-0.3.1 lib/3llo/commands/list/list.rb
3llo-0.3.0 lib/3llo/commands/list/list.rb
3llo-0.2.0 lib/3llo/commands/list/list.rb
3llo-0.1.12 lib/3llo/commands/list/list.rb
3llo-0.1.11 lib/3llo/commands/list/list.rb
3llo-0.1.10 lib/3llo/commands/list/list.rb
3llo-0.1.9 lib/3llo/commands/list/list.rb
3llo-0.1.9.beta lib/3llo/commands/list/list.rb
3llo-0.1.8 lib/3llo/commands/list/list.rb