class Kamome::Configuration
Attributes
cleanup[RW]
@!attribute [rw] cleanup
If you do not want to delete the downloaded csv, please specify `false` @return [Bolean]
open_uri_options[RW]
@!attribute [rw] open_uri_options
OpenURI options @see https://docs.ruby-lang.org/ja/latest/class/OpenURI.html @return [Hash]
tmp_path[RW]
@!attribute [rw] tmp_path
@return [String]
Public Class Methods
new()
click to toggle source
# File lib/kamome/configuration.rb, line 22 def initialize @tmp_path = ::File.join(Dir.tmpdir, 'kamome') @open_uri_options = {} @cleanup = true end
Public Instance Methods
working_directory()
click to toggle source
@return [Pathname]
# File lib/kamome/configuration.rb, line 29 def working_directory @working_directory ||= ::Pathname.new(@tmp_path.to_s) end