Sha256: 6ef28bcb23d1df9f8b247d79724f15e86009d3c0b54a124729c083049d677553
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
module Troo module Commands module Add class Card < Resource def add if created success else error_trello_error end end private def success "New card '#{value}' created." end def error_trello_error 'Card could not be created.' end def created @created ||= CreateCard.for(resource, value) 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/add/card.rb |