Class: FlixCloud::FileLocations
- Defined in:
- lib/flix_cloud/file_locations.rb
Instance Attribute Summary
Attributes inherited from Record
Instance Method Summary collapse
Methods inherited from Record
#attributes=, #initialize, record_column
Constructor Details
This class inherits a constructor from FlixCloud::Record
Instance Method Details
#valid? ⇒ Boolean
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/flix_cloud/file_locations.rb', line 8 def valid? self.errors = [] if input unless input.valid? self.errors << {:input => input.errors} end else self.errors << "input is required" end if output unless output.valid? self.errors << {:output => output.errors} end else self.errors << "output is required" end if watermark && !watermark.valid? self.errors << {:watermark => watermark.errors} end errors.empty? end |