Sha256: 95ac80e9bba4ca537e3ad2f9b424f36bf61dc47aac9f176097c35e0603395ffb

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

module Troo
  module External
    class Card < Resource
      def persist
        Persistence::Card.with_collection(fetch)
      end

      private

      def defaults
        { comments: true, mode: :board }
      end

      def by_board_id
        Trello::Board.find(external_id).cards
      end

      def by_list_id
        Trello::List.find(external_id).cards
      end

      def by_card_id
        [Trello::Card.find(external_id)]
      end

      def by_member_id
        []
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.8 lib/troo/external/card.rb