Sha256: afa762d4fdaf39aaab0fdcb2a3c58b0476e73940d09bea3729b6bd7629d60bcb

Contents?: true

Size: 488 Bytes

Versions: 10

Compression:

Stored size: 488 Bytes

Contents

module Cp8Cli
  module Trello
    class List < Base
      BACKLOG_INDEX = 0
      STARTED_INDEX = 1
      FINISHED_INDEX = 2
      ACCEPTED_INDEX = 3

      has_many :cards

      def self.fields
        [:name]
      end

      def self.backlog
        all[BACKLOG_INDEX]
      end

      def self.started
        all[STARTED_INDEX]
      end

      def self.finished
        all[FINISHED_INDEX]
      end

      def self.accepted
        all[ACCEPTED_INDEX]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cp8_cli-6.0.1 lib/cp8_cli/trello/list.rb
cp8_cli-6.0.0 lib/cp8_cli/trello/list.rb
cp8_cli-5.0.0 lib/cp8_cli/trello/list.rb
cp8_cli-4.2.1 lib/cp8_cli/trello/list.rb
cp8_cli-4.2.0 lib/cp8_cli/trello/list.rb
cp8_cli-4.1.3 lib/cp8_cli/trello/list.rb
cp8_cli-4.1.2 lib/cp8_cli/trello/list.rb
cp8_cli-4.1.1 lib/cp8_cli/trello/list.rb
cp8_cli-4.1.0 lib/cp8_cli/trello/list.rb
cp8_cli-4.0.1 lib/cp8_cli/trello/list.rb