Class: TUITD::Configuration
- Inherits:
-
Object
- Object
- TUITD::Configuration
- Defined in:
- lib/tui_td/configuration.rb
Overview
Instance Attribute Summary collapse
-
#ffmpeg_path ⇒ Object
Returns the value of attribute ffmpeg_path.
-
#record_default_codec ⇒ Object
Returns the value of attribute record_default_codec.
-
#record_default_fps ⇒ Object
Returns the value of attribute record_default_fps.
-
#snapshot_dir ⇒ Object
Returns the value of attribute snapshot_dir.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
-
#update_snapshots? ⇒ Boolean
Check if UPDATE_SNAPSHOTS env var is set to update mode.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
14 15 16 17 18 19 |
# File 'lib/tui_td/configuration.rb', line 14 def initialize @snapshot_dir = nil @ffmpeg_path = nil @record_default_fps = 30 @record_default_codec = "libx264" end |
Instance Attribute Details
#ffmpeg_path ⇒ Object
Returns the value of attribute ffmpeg_path.
12 13 14 |
# File 'lib/tui_td/configuration.rb', line 12 def ffmpeg_path @ffmpeg_path end |
#record_default_codec ⇒ Object
Returns the value of attribute record_default_codec.
12 13 14 |
# File 'lib/tui_td/configuration.rb', line 12 def record_default_codec @record_default_codec end |
#record_default_fps ⇒ Object
Returns the value of attribute record_default_fps.
12 13 14 |
# File 'lib/tui_td/configuration.rb', line 12 def record_default_fps @record_default_fps end |
#snapshot_dir ⇒ Object
Returns the value of attribute snapshot_dir.
12 13 14 |
# File 'lib/tui_td/configuration.rb', line 12 def snapshot_dir @snapshot_dir end |
Instance Method Details
#update_snapshots? ⇒ Boolean
Check if UPDATE_SNAPSHOTS env var is set to update mode.
22 23 24 |
# File 'lib/tui_td/configuration.rb', line 22 def update_snapshots? %w[1 true].include?(ENV["UPDATE_SNAPSHOTS"].to_s) end |