Module: CapIt

Defined in:
lib/capit.rb,
lib/capit/capture.rb,
lib/capit/version.rb

Overview

Primary namespace of the capit gem

Defined Under Namespace

Classes: Capture, CutyCaptError, InvalidExtensionError, InvalidOSError

Constant Summary collapse

VERSION =

The version number

"0.3.3"

Class Method Summary collapse

Class Method Details

.Capture(url, options = {}) ⇒ Object

Capture image from URL. Convenience method for Capture

Examples:

CapIt::Capture("http://mdvlrb.com", :filename => "mdvlrb.jpg")


11
12
13
# File 'lib/capit/capture.rb', line 11

def Capture url, options = {}
  CapIt::Capture.new(url, options).capture
end