Sha256: 68fee2c62ac81c44f74777a9bf6826a526ca889c41984ff7554cf716f273e98c
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
module Troo class Comment < Ohm::Model include Ohm::DataTypes include ModelHelpers attribute :text attribute :date attribute :external_board_id attribute :external_card_id attribute :external_comment_id attribute :external_member_id index :date index :external_board_id index :external_card_id index :external_comment_id index :external_member_id def board Troo::BoardRetrieval.retrieve(self.external_board_id) end def card Troo::CardRetrieval.retrieve(self.external_card_id) end def member Troo::MemberRetrieval.retrieve(self.external_member_id) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.4 | lib/troo/models/comment.rb |
troo-0.0.3 | lib/troo/models/comment.rb |
troo-0.0.2 | lib/troo/models/comment.rb |