Sha256: dbee2ca59051870c6d40b8bad1c86ecc2595f0604e970c346f09665a4635494c

Contents?: true

Size: 530 Bytes

Versions: 8

Compression:

Stored size: 530 Bytes

Contents

module Tr3llo
  module Command
    module Card
      class CommentsCommand
        def initialize(card_id)
          @card_id = card_id
        end

        def execute
          Tr3llo::Presenter::Card::CommentsPresenter
            .new(interface)
            .print!(load_comments)
        end

        private

        attr_reader :card_id

        def load_comments
          API::Card.find_comments(card_id)
        end

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

Version data entries

8 entries across 8 versions & 1 rubygems

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