Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def audio_track_1=a
- tracks = read_attribute :audio_tracks
- tracks ||= []
- tracks[0] = a.empty? ? nil : a.to_i
- write_attribute :audio_tracks, tracks
- end
- def audio_track_1
- tracks = read_attribute :audio_tracks
- return tracks[0] if tracks
- end
- def audio_track_2=a
- tracks = read_attribute :audio_tracks
- tracks ||= []
- tracks[1] = a.empty? ? nil : a.to_i
- write_attribute :audio_tracks, tracks
- end
- def audio_track_2
- tracks = read_attribute :audio_tracks
- return tracks[1] if tracks
- end
- def audio_track_3=a
- tracks = read_attribute :audio_tracks
- tracks ||= []
- tracks[2] = a.empty? ? nil : a.to_i
- write_attribute :audio_tracks, tracks
- end
- def audio_track_3
- tracks = read_attribute :audio_tracks
- return tracks[2] if tracks
- end
- def audio_track_4=a
- tracks = read_attribute :audio_tracks
- tracks ||= []
- tracks[3] = a.empty? ? nil : a.to_i
- write_attribute :audio_tracks, tracks
- end
- def audio_track_4
- tracks = read_attribute :audio_tracks
- return tracks[3] if tracks
- end
- def audio_track_5=a
- tracks = read_attribute :audio_tracks
- tracks ||= []
- tracks[4] = a.empty? ? nil : a.to_i
- write_attribute :audio_tracks, tracks
- end
- def audio_track_5
- tracks = read_attribute :audio_tracks
- return tracks[4] if tracks
- end
- def audio_track_6=a
- tracks = read_attribute :audio_tracks
- tracks ||= []
- tracks[5] = a.empty? ? nil : a.to_i
- write_attribute :audio_tracks, tracks
- end
- def audio_track_6
- tracks = read_attribute :audio_tracks
- return tracks[5] if tracks
- end
- def audio_track_7=a
- tracks = read_attribute :audio_tracks
- tracks ||= []
- tracks[6] = a.empty? ? nil : a.to_i
- write_attribute :audio_tracks, tracks
- end
- def audio_track_7
- tracks = read_attribute :audio_tracks
- return tracks[6] if tracks
- end
- def audio_track_8=a
- tracks = read_attribute :audio_tracks
- tracks ||= []
- tracks[7] = a.empty? ? nil : a.to_i
- write_attribute :audio_tracks, tracks
- end
- def audio_track_8
- tracks = read_attribute :audio_tracks
- return tracks[7] if tracks
- end
Add Comment
Please, Sign In to add comment