Class: Url2PngDc::Configuration
- Inherits:
-
Object
- Object
- Url2PngDc::Configuration
- Defined in:
- lib/url2png/configuration.rb
Constant Summary collapse
- URL2PNG_API_URL =
'http://api.url2png.com'
- URL2PNG_API_VERSION =
'v6'
Instance Attribute Summary collapse
-
#force_refresh ⇒ Object
Returns the value of attribute force_refresh.
-
#fullpage ⇒ Object
Returns the value of attribute fullpage.
-
#url2png_apikey ⇒ Object
Returns the value of attribute url2png_apikey.
-
#url2png_secret ⇒ Object
Returns the value of attribute url2png_secret.
-
#viewport_dimensions ⇒ Object
Returns the value of attribute viewport_dimensions.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #url2png_api_url ⇒ Object
- #url2png_api_version ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 |
# File 'lib/url2png/configuration.rb', line 12 def initialize @url2png_apikey = 'PXXXX' @url2png_secret = 'SXXXX' @viewport_dimensions = '1280x1024' @fullpage = false @force_refresh = false end |
Instance Attribute Details
#force_refresh ⇒ Object
Returns the value of attribute force_refresh.
10 11 12 |
# File 'lib/url2png/configuration.rb', line 10 def force_refresh @force_refresh end |
#fullpage ⇒ Object
Returns the value of attribute fullpage.
9 10 11 |
# File 'lib/url2png/configuration.rb', line 9 def fullpage @fullpage end |
#url2png_apikey ⇒ Object
Returns the value of attribute url2png_apikey.
6 7 8 |
# File 'lib/url2png/configuration.rb', line 6 def url2png_apikey @url2png_apikey end |
#url2png_secret ⇒ Object
Returns the value of attribute url2png_secret.
7 8 9 |
# File 'lib/url2png/configuration.rb', line 7 def url2png_secret @url2png_secret end |
#viewport_dimensions ⇒ Object
Returns the value of attribute viewport_dimensions.
8 9 10 |
# File 'lib/url2png/configuration.rb', line 8 def @viewport_dimensions end |
Instance Method Details
#url2png_api_url ⇒ Object
20 21 22 |
# File 'lib/url2png/configuration.rb', line 20 def url2png_api_url URL2PNG_API_URL end |
#url2png_api_version ⇒ Object
24 25 26 |
# File 'lib/url2png/configuration.rb', line 24 def url2png_api_version URL2PNG_API_VERSION end |