Sha256: b1dfd2d5253aa975c75235442bebbcb051f015875e880110571c1c491c68e1be

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

module Troo
  module Commands
    module Default
      class Card < Resource
        private

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

        def error
          'Card cannot be found.'
        end

        def resource_name
          resource.decorator.name
        end

        def resource
          Retrieval::Card.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/card.rb