Module: DirectWave::Uploader::Versions

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/directwave/uploader/versions.rb

Defined Under Namespace

Modules: ClassMethods Classes: Version

Instance Method Summary collapse

Instance Method Details

#versionsObject

Returns a hash mapping the name of each version of the Version to an instance of it

Returns

Hash=> DirectWave::Versions::Version

a list of version instances



162
163
164
165
166
167
168
169
# File 'lib/directwave/uploader/versions.rb', line 162

def versions
  return @versions if @versions
  @versions = {}
  self.class.versions.each do |name, version|
    @versions[name] = version.new(self, name)
  end
  @versions
end