Initial commit
This commit is contained in:
21
app/models/edl_event.rb
Normal file
21
app/models/edl_event.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
class EdlEvent < Struct.new(
|
||||
:channel,
|
||||
:start_time,
|
||||
:timecode_in,
|
||||
:timecode_out,
|
||||
:duration,
|
||||
:source_file_name,
|
||||
:clip_name,
|
||||
:description,
|
||||
:matches,
|
||||
keyword_init: true
|
||||
)
|
||||
|
||||
def attributes
|
||||
to_h
|
||||
end
|
||||
|
||||
def public_attributes
|
||||
attributes.except(:start_time, :matches)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user