Sha256: c518d06a0bea03c93912d76f2e3d03f917793ec89b7173acf88a9b6d4bc21477

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

module Troo
  module Commands
    module Default
      class List < Resource
        private

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

        def error
          'List cannot be found.'
        end

        def resource_name
          resource.decorator.name
        end

        def resource
          Retrieval::List.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/list.rb