struct

Opal::Asciicast::Event

Inherits Struct < Value < Object

Represents an individual event in an Asciinema v2 stream. Each event is formatted as a 3-element JSON array: [time, type, data]

Constructors

from_json(json_str : String) : Event
Source
from_json_array(arr : Array(JSON::Any)) : Event
Source
input(time : Float64, data : String) : Event

Convenience constructor for input events

Source
marker(time : Float64, label : String) : Event

Convenience constructor for marker events

Source
new(time : Float64, type : String, data : String)
Source
output(time : Float64, data : String) : Event

Convenience constructor for output events

Source

Instance methods

data
Source
input?
Source
marker?
Source
output?
Source
time
Source
to_json(json : JSON::Builder) : Nil
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
type
Source