Sha256: 0cb6fd7b8c4da665730c0f6b3b698afe1ed35c0ceaa64ecda59ca15060274544
Contents?: true
Size: 584 Bytes
Versions: 3
Compression:
Stored size: 584 Bytes
Contents
module Troo class List < Ohm::Model include Ohm::DataTypes include ModelHelpers attribute :name attribute :position, Type::Integer attribute :default, Type::Boolean attribute :closed, Type::Boolean attribute :external_board_id attribute :external_list_id index :default index :external_board_id index :external_list_id alias_method :default?, :default def board Troo::BoardRetrieval.retrieve(self.external_board_id) end def cards Troo::Card.find(external_list_id: self.external_list_id) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.4 | lib/troo/models/list.rb |
troo-0.0.3 | lib/troo/models/list.rb |
troo-0.0.2 | lib/troo/models/list.rb |