Class: CommentOrigin

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
CommentExtender
Defined in:
lib/ting_model/comment_origin.rb

Instance Method Summary collapse

Methods included from CommentExtender

next_id

Instance Method Details

#to_topic_hashObject



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