Class: PhantomJSProxy::Options
- Inherits:
-
Object
- Object
- PhantomJSProxy::Options
- Defined in:
- lib/phantom_proxy/phantomjsserver.rb
Instance Method Summary collapse
-
#initialize(env) ⇒ Options
constructor
A new instance of Options.
- #loadFrames? ⇒ Boolean
- #picture? ⇒ Boolean
Constructor Details
#initialize(env) ⇒ Options
Returns a new instance of Options.
7 8 9 |
# File 'lib/phantom_proxy/phantomjsserver.rb', line 7 def initialize(env) @env = env end |
Instance Method Details
#loadFrames? ⇒ Boolean
15 16 17 |
# File 'lib/phantom_proxy/phantomjsserver.rb', line 15 def loadFrames? @env['HTTP_GET_PAGE_WITH_IFRAMES']||true end |
#picture? ⇒ Boolean
11 12 13 |
# File 'lib/phantom_proxy/phantomjsserver.rb', line 11 def picture? @env['HTTP_GET_PAGE_AS_IMAGE']||false end |