Sha256: 8d14af3e12af42a028a133d15b612d388c0e04de4c8ab86fd712fff79aa00f56

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

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

      private

      def by_board_id
        Trello::Board.find(external_id).actions(filter: 'commentCard')
      end

      def by_list_id
        Trello::List.find(external_id).actions(filter: 'commentCard')
      end

      def by_card_id
        Trello::Card.find(external_id).actions(filter: 'commentCard')
      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/comment.rb