Module: ScreenshotMachine
- Extended by:
- Configuration
- Defined in:
- lib/screenshot_machine.rb,
lib/screenshot_machine/version.rb,
lib/screenshot_machine/generator.rb,
lib/screenshot_machine/configuration.rb
Defined Under Namespace
Modules: Configuration, Exceptions Classes: Generator
Constant Summary collapse
- API_URL =
"http://api.screenshotmachine.com/"
- VERSION =
"0.0.4"
Constants included from Configuration
Configuration::DEFAULT_CACHELIMIT, Configuration::DEFAULT_FORMAT, Configuration::DEFAULT_KEY, Configuration::DEFAULT_SIZE, Configuration::DEFAULT_TIMEOUT, Configuration::DEFAULT_URL, Configuration::VALID_PARAMS_KEYS
Class Method Summary collapse
-
.method_missing(method, *args, &block) ⇒ Object
Delegate to ScreenshotMachine::Generator.
-
.new(url, options = {}) ⇒ ScreenshotMachine::Generator
Alias for ScreenshotMachine::Generator.new.
-
.respond_to?(method, include_private = false) ⇒ Boolean
Delegate to ScreenshotMachine::Generator.
Methods included from Configuration
configure, extended, options, reset
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
Delegate to ScreenshotMachine::Generator
27 28 29 30 |
# File 'lib/screenshot_machine.rb', line 27 def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end |
.new(url, options = {}) ⇒ ScreenshotMachine::Generator
Alias for ScreenshotMachine::Generator.new
22 23 24 |
# File 'lib/screenshot_machine.rb', line 22 def new(url, ={}) ScreenshotMachine::Generator.new(url, ) end |
.respond_to?(method, include_private = false) ⇒ Boolean
Delegate to ScreenshotMachine::Generator
33 34 35 |
# File 'lib/screenshot_machine.rb', line 33 def respond_to?(method, include_private = false) new.respond_to?(method, include_private) || super(method, include_private) end |