Class: UrlToPng::Configuration
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- UrlToPng::Configuration
- Defined in:
- lib/url_to_png/configuration.rb
Constant Summary collapse
- QUERY_OPTIONS =
[ :custom_css, :fullpage, :say_cheese, :thumbnail_max_width, :unique, :user_agent, :viewport ]
Instance Method Summary collapse
Instance Method Details
#configured? ⇒ Boolean
25 26 27 |
# File 'lib/url_to_png/configuration.rb', line 25 def configured? !api_key.nil? && !secret_key.nil? end |
#query_hash ⇒ Object
29 30 31 |
# File 'lib/url_to_png/configuration.rb', line 29 def query_hash select{|key, value| QUERY_OPTIONS.include?(key)} end |