Class: ActiveEncode::Input
- Inherits:
-
Object
- Object
- ActiveEncode::Input
- Includes:
- Status, TechnicalMetadata
- Defined in:
- lib/active_encode/input.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Methods included from TechnicalMetadata
Methods included from Status
#cancelled?, #completed?, #failed?, #running?
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/active_encode/input.rb', line 7 def id @id end |
#url ⇒ Object
Returns the value of attribute url.
8 9 10 |
# File 'lib/active_encode/input.rb', line 8 def url @url end |
Instance Method Details
#valid? ⇒ Boolean
10 11 12 13 14 |
# File 'lib/active_encode/input.rb', line 10 def valid? id.present? && url.present? && created_at.is_a?(Time) && updated_at.is_a?(Time) && updated_at >= created_at end |