Class: Timelapsify::ScreenshotCapturer
- Inherits:
-
Object
- Object
- Timelapsify::ScreenshotCapturer
- Defined in:
- lib/timelapsify/screenshot_capturer.rb
Instance Attribute Summary collapse
-
#utility ⇒ Object
readonly
Returns the value of attribute utility.
Instance Method Summary collapse
-
#initialize(utility = :rmagick) ⇒ ScreenshotCapturer
constructor
A new instance of ScreenshotCapturer.
Constructor Details
#initialize(utility = :rmagick) ⇒ ScreenshotCapturer
Returns a new instance of ScreenshotCapturer.
7 8 9 10 11 12 13 14 |
# File 'lib/timelapsify/screenshot_capturer.rb', line 7 def initialize(utility = :rmagick) case utility when :rmagick @utility = Timelapsify::RMagickScreenshotCapturer else raise NotImplementedError, "Cannot find an appropriate class for utility argument #{utility}" end end |
Instance Attribute Details
#utility ⇒ Object (readonly)
Returns the value of attribute utility.
5 6 7 |
# File 'lib/timelapsify/screenshot_capturer.rb', line 5 def utility @utility end |