Class: SugoiWebpageCapture::Screenshot
- Inherits:
-
Object
- Object
- SugoiWebpageCapture::Screenshot
- Defined in:
- lib/sugoi_webpage_capture/screenshot.rb
Instance Attribute Summary collapse
-
#tempfile ⇒ Object
readonly
Returns the value of attribute tempfile.
Instance Method Summary collapse
-
#initialize(tempfile) ⇒ Screenshot
constructor
A new instance of Screenshot.
- #path ⇒ Object
- #unlink ⇒ Object
Constructor Details
#initialize(tempfile) ⇒ Screenshot
Returns a new instance of Screenshot.
5 6 7 |
# File 'lib/sugoi_webpage_capture/screenshot.rb', line 5 def initialize(tempfile) @tempfile = tempfile end |
Instance Attribute Details
#tempfile ⇒ Object (readonly)
Returns the value of attribute tempfile.
3 4 5 |
# File 'lib/sugoi_webpage_capture/screenshot.rb', line 3 def tempfile @tempfile end |
Instance Method Details
#path ⇒ Object
13 14 15 |
# File 'lib/sugoi_webpage_capture/screenshot.rb', line 13 def path @tempfile.path end |
#unlink ⇒ Object
9 10 11 |
# File 'lib/sugoi_webpage_capture/screenshot.rb', line 9 def unlink @tempfile.unlink end |