Class: Url2PngDc::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/url2png/configuration.rb

Constant Summary collapse

URL2PNG_API_URL =
'http://api.url2png.com'
URL2PNG_API_VERSION =
'v6'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_refreshObject

Returns the value of attribute force_refresh.



10
11
12
# File 'lib/url2png/configuration.rb', line 10

def force_refresh
  @force_refresh
end

#fullpageObject

Returns the value of attribute fullpage.



9
10
11
# File 'lib/url2png/configuration.rb', line 9

def fullpage
  @fullpage
end

#url2png_apikeyObject

Returns the value of attribute url2png_apikey.



6
7
8
# File 'lib/url2png/configuration.rb', line 6

def url2png_apikey
  @url2png_apikey
end

#url2png_secretObject

Returns the value of attribute url2png_secret.



7
8
9
# File 'lib/url2png/configuration.rb', line 7

def url2png_secret
  @url2png_secret
end

#viewport_dimensionsObject

Returns the value of attribute viewport_dimensions.



8
9
10
# File 'lib/url2png/configuration.rb', line 8

def viewport_dimensions
  @viewport_dimensions
end

Instance Method Details

#url2png_api_urlObject



20
21
22
# File 'lib/url2png/configuration.rb', line 20

def url2png_api_url
  URL2PNG_API_URL
end

#url2png_api_versionObject



24
25
26
# File 'lib/url2png/configuration.rb', line 24

def url2png_api_version
  URL2PNG_API_VERSION
end