Class: Picdown::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/picdown/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#destinationObject

Returns the value of attribute destination

Returns:

  • (Object)

    the current value of destination



4
5
6
# File 'lib/picdown/config.rb', line 4

def destination
  @destination
end

#max_redirectsObject

Returns the value of attribute max_redirects

Returns:

  • (Object)

    the current value of max_redirects



4
5
6
# File 'lib/picdown/config.rb', line 4

def max_redirects
  @max_redirects
end

#max_sizeObject

Returns the value of attribute max_size

Returns:

  • (Object)

    the current value of max_size



4
5
6
# File 'lib/picdown/config.rb', line 4

def max_size
  @max_size
end

#open_timeoutObject

Returns the value of attribute open_timeout

Returns:

  • (Object)

    the current value of open_timeout



4
5
6
# File 'lib/picdown/config.rb', line 4

def open_timeout
  @open_timeout
end

#parallelObject

Returns the value of attribute parallel

Returns:

  • (Object)

    the current value of parallel



4
5
6
# File 'lib/picdown/config.rb', line 4

def parallel
  @parallel
end

#read_timeoutObject

Returns the value of attribute read_timeout

Returns:

  • (Object)

    the current value of read_timeout



4
5
6
# File 'lib/picdown/config.rb', line 4

def read_timeout
  @read_timeout
end