Sha256: c299089fcca4afe08ee3e122b17a21dfc8f3a21706c561115aa6f6db4c67c45e
Contents?: true
Size: 382 Bytes
Versions: 9
Compression:
Stored size: 382 Bytes
Contents
class FlixCloud::File < FlixCloud::Record attr_accessor :url, :size, :width, :height, :duration, :cost record_column :parameters, 'Parameters' def valid? self.errors = [] unless url self.errors << "url is required" end if parameters && !parameters.valid? self.errors << {:parameters => parameters.errors} end errors.empty? end end
Version data entries
9 entries across 9 versions & 3 rubygems