Class: SugoiWebpageCapture::Screenshot

Inherits:
Object
  • Object
show all
Defined in:
lib/sugoi_webpage_capture/screenshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tempfileObject (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

#pathObject



13
14
15
# File 'lib/sugoi_webpage_capture/screenshot.rb', line 13

def path
  @tempfile.path
end


9
10
11
# File 'lib/sugoi_webpage_capture/screenshot.rb', line 9

def unlink
  @tempfile.unlink
end