13 lines
264 B
Ruby
13 lines
264 B
Ruby
class AsciicastSerializer < ActiveModel::Serializer
|
|
self.root = false
|
|
|
|
attributes :id, :duration, :stdout_frames_url, :snapshot
|
|
attribute :terminal_columns, key: :width
|
|
attribute :terminal_lines, key: :height
|
|
|
|
def private?
|
|
object.private?
|
|
end
|
|
|
|
end
|