Class: FavoriteOrigin

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

Instance Method Summary collapse

Methods included from FavoriteExtender

next_id

Instance Method Details

#to_topic_hashObject



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/ting_model/favorite_origin.rb', line 104

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_avatar_path: self.track_avatar_path,
    track_duration: self.track_duration,
    user_source: self.user_source,
    category_id: self.category_id,
    tags: self.tags,
    title: self.title,
    intro: self.intro,
    cover_path: self.cover_path,
    duration: self.duration,
    download_path: self.download_path,
    play_path: self.play_path,
    play_path_128: self.play_path_128,
    play_path_64: self.play_path_64,
    play_path_32: self.play_path_32,
    track_created_at: self.track_created_at,
    allow_download: self.allow_download,
    allow_comment: self.allow_comment,
    album_id: self.album_id,
    album_title: self.album_title,
    album_cover_path: self.album_cover_path
  }
end