Sha256: 3afb2983083ba46894900661e1b60fd7382a03e62d2e7f68ebd21115e1200afc

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

module Troo
  module Commands
    module Default
      class Board < Resource
        private

        def success
          "'#{resource_name}' set as default board."
        end

        def error
          'Board cannot be found.'
        end

        def resource_name
          resource.decorator.name
        end

        def resource
          Retrieval::Board.retrieve(id)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.8 lib/troo/commands/default/board.rb