Sha256: 6237159085991d468967108a53bb1b1f077480d500a18cda980fbdffd5a700fe
Contents?: true
Size: 659 Bytes
Versions: 2
Compression:
Stored size: 659 Bytes
Contents
module Troo module Commands class ShowBoards class << self # @return [String] def dispatch new.render end end # @return [Troo::Commands::ShowBoards] def initialize; end # @return [String] def render return presenter if resources.any? error end private def error "#{type.capitalize} cannot be found." end def type 'boards' end def presenter Presenters::Board.all(resources) end def resources @resources ||= Troo::Retrieval::Local.all(Troo::Board) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.15 | lib/troo/cli/commands/show/show_boards.rb |
troo-0.0.14 | lib/troo/cli/commands/show/show_boards.rb |