Class: Picdown::Config
- Inherits:
-
Struct
- Object
- Struct
- Picdown::Config
- Defined in:
- lib/picdown/config.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#max_redirects ⇒ Object
Returns the value of attribute max_redirects.
-
#max_size ⇒ Object
Returns the value of attribute max_size.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#parallel ⇒ Object
Returns the value of attribute parallel.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 16 17 18 19 20 |
# File 'lib/picdown/config.rb', line 13 def initialize(**) super self.parallel = parallel.to_i self.open_timeout = open_timeout.to_i self.read_timeout = read_timeout.to_i self.max_size = max_size.to_i self.max_redirects = max_redirects.to_i end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination
4 5 6 |
# File 'lib/picdown/config.rb', line 4 def destination @destination end |
#max_redirects ⇒ Object
Returns the value of attribute max_redirects
4 5 6 |
# File 'lib/picdown/config.rb', line 4 def max_redirects @max_redirects end |
#max_size ⇒ Object
Returns the value of attribute max_size
4 5 6 |
# File 'lib/picdown/config.rb', line 4 def max_size @max_size end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout
4 5 6 |
# File 'lib/picdown/config.rb', line 4 def open_timeout @open_timeout end |
#parallel ⇒ Object
Returns the value of attribute parallel
4 5 6 |
# File 'lib/picdown/config.rb', line 4 def parallel @parallel end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout
4 5 6 |
# File 'lib/picdown/config.rb', line 4 def read_timeout @read_timeout end |