Class: CommentOrigin
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CommentOrigin
- Extended by:
- CommentExtender
- Defined in:
- lib/ting_model/comment_origin.rb
Direct Known Subclasses
Comment, Comment0, Comment1, Comment10, Comment11, Comment12, Comment13, Comment14, Comment15, Comment16, Comment17, Comment18, Comment19, Comment2, Comment20, Comment21, Comment22, Comment23, Comment24, Comment25, Comment26, Comment27, Comment28, Comment29, Comment3, Comment30, Comment31, Comment32, Comment33, Comment34, Comment35, Comment36, Comment37, Comment38, Comment39, Comment4, Comment40, Comment41, Comment42, Comment43, Comment44, Comment45, Comment46, Comment47, Comment48, Comment49, Comment5, Comment50, Comment51, Comment52, Comment53, Comment54, Comment55, Comment56, Comment57, Comment58, Comment59, Comment6, Comment60, Comment61, Comment62, Comment63, Comment64, Comment65, Comment66, Comment67, Comment68, Comment69, Comment7, Comment70, Comment71, Comment72, Comment73, Comment74, Comment75, Comment76, Comment77, Comment78, Comment79, Comment8, Comment80, Comment81, Comment82, Comment83, Comment84, Comment85, Comment86, Comment87, Comment88, Comment89, Comment9, Comment90, Comment91, Comment92, Comment93, Comment94, Comment95, Comment96, Comment97, Comment98, Comment99
Instance Method Summary collapse
Methods included from CommentExtender
Instance Method Details
#to_topic_hash ⇒ Object
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
# File 'lib/ting_model/comment_origin.rb', line 89 def to_topic_hash { created_at: self.created_at, updated_at: self.updated_at, id: self.id, uid: self.uid, nickname: self.nickname, avatar_path: self.avatar_path, track_id: self.track_id, track_uid: self.track_uid, track_nickname: self.track_nickname, track_title: self.track_title, track_duration: self.track_duration, track_created_at: self.track_created_at, track_avatar_path: self.track_avatar_path, second: self.second, parent_id: self.parent_id, content: self.content, play_path: self.play_path, play_path_32: self.play_path_32, play_path_64: self.play_path_64, play_path_128: self.play_path_128, user_source: self.user_source, cover_path: self.cover_path } end |