Module: VideoGrabber
- Defined in:
- lib/video_grabber.rb,
lib/video_grabber/config.rb,
lib/video_grabber/scraper.rb,
lib/video_grabber/version.rb,
lib/video_grabber/exceptions.rb,
lib/video_grabber/application.rb
Defined Under Namespace
Classes: Application, BrowserIsClosed, Configuration, Exception, ExtensionError, Scraper, TimeOut
Constant Summary collapse
- VERSION =
"1.9"
Class Attribute Summary collapse
-
.application ⇒ Object
readonly
Returns the value of attribute application.
Class Method Summary collapse
- .call ⇒ Object
-
.config ⇒ VideoGrabber::Configuration
Access point for the gem configurations.
-
.configure {|config| ... } ⇒ void
Configure hook used in the gem initializer.
- .new(opts) ⇒ Object
Class Attribute Details
.application ⇒ Object (readonly)
Returns the value of attribute application.
17 18 19 |
# File 'lib/video_grabber.rb', line 17 def application @application end |
Class Method Details
.call ⇒ Object
23 24 25 |
# File 'lib/video_grabber.rb', line 23 def call application.call end |
.config ⇒ VideoGrabber::Configuration
Access point for the gem configurations.
6 7 8 |
# File 'lib/video_grabber/config.rb', line 6 def self.config @config ||= Configuration.new end |
.configure {|config| ... } ⇒ void
This method returns an undefined value.
Configure hook used in the gem initializer. Convinient way to set all the gem configurations.
example:
VideoGrabber.configure do |config|
config.timeout = 60
end
19 20 21 |
# File 'lib/video_grabber/config.rb', line 19 def self.configure yield config if block_given? end |
.new(opts) ⇒ Object
19 20 21 |
# File 'lib/video_grabber.rb', line 19 def new(opts) @application = VideoGrabber::Application.new(opts) end |