Sha256: 144fd28589b0a51a4825fc9c842ffd3d2254b88240f069f0078d1e2908c3b7d6
Contents?: true
Size: 536 Bytes
Versions: 1
Compression:
Stored size: 536 Bytes
Contents
require 'prx/representer/full/piece_representer' module PRX module Model class Piece < PRX::Model::Base include PRX::Representer::Full::PieceRepresenter def initialize(*args) super self.audio_versions ||= [] self.networks ||= [] end def add_audio(audio={}) if self.audio_versions.size < 1 self.audio_versions << AudioVersion.new(:label=>'Piece Audio') end self.audio_versions[0].audio_files << AudioFile.new(audio) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
prx_client-0.1.0 | lib/prx/model/piece.rb |