Class: Asciicast
- Inherits:
-
Object
- Object
- Asciicast
- Defined in:
- lib/asciinema/asciicast.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#snapshot ⇒ Object
Returns the value of attribute snapshot.
-
#snapshot_at ⇒ Object
Returns the value of attribute snapshot_at.
-
#stdout_frames ⇒ Object
Returns the value of attribute stdout_frames.
-
#terminal_columns ⇒ Object
readonly
Returns the value of attribute terminal_columns.
-
#terminal_lines ⇒ Object
readonly
Returns the value of attribute terminal_lines.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(terminal_columns, terminal_lines, duration, file_location) ⇒ Asciicast
constructor
A new instance of Asciicast.
- #stdout ⇒ Object
- #with_terminal ⇒ Object
Constructor Details
#initialize(terminal_columns, terminal_lines, duration, file_location) ⇒ Asciicast
Returns a new instance of Asciicast.
10 11 12 13 14 15 16 |
# File 'lib/asciinema/asciicast.rb', line 10 def initialize(terminal_columns, terminal_lines, duration, file_location) @terminal_columns = terminal_columns @terminal_lines = terminal_lines @duration = duration @file = File.new(file_location) @version = 1 end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
7 8 9 |
# File 'lib/asciinema/asciicast.rb', line 7 def duration @duration end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
7 8 9 |
# File 'lib/asciinema/asciicast.rb', line 7 def file @file end |
#snapshot ⇒ Object
Returns the value of attribute snapshot.
8 9 10 |
# File 'lib/asciinema/asciicast.rb', line 8 def snapshot @snapshot end |
#snapshot_at ⇒ Object
Returns the value of attribute snapshot_at.
8 9 10 |
# File 'lib/asciinema/asciicast.rb', line 8 def snapshot_at @snapshot_at end |
#stdout_frames ⇒ Object
Returns the value of attribute stdout_frames.
8 9 10 |
# File 'lib/asciinema/asciicast.rb', line 8 def stdout_frames @stdout_frames end |
#terminal_columns ⇒ Object (readonly)
Returns the value of attribute terminal_columns.
7 8 9 |
# File 'lib/asciinema/asciicast.rb', line 7 def terminal_columns @terminal_columns end |
#terminal_lines ⇒ Object (readonly)
Returns the value of attribute terminal_lines.
7 8 9 |
# File 'lib/asciinema/asciicast.rb', line 7 def terminal_lines @terminal_lines end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
7 8 9 |
# File 'lib/asciinema/asciicast.rb', line 7 def version @version end |