Class: Law::Japan::EGov::Downloader

Inherits:
Object
  • Object
show all
Defined in:
lib/law/japan/e_gov/downloader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_dir) ⇒ Downloader

Returns a new instance of Downloader.



15
16
17
# File 'lib/law/japan/e_gov/downloader.rb', line 15

def initialize(root_dir)
  @root_dir = root_dir
end

Instance Attribute Details

#root_dirObject (readonly)

Returns the value of attribute root_dir.



14
15
16
# File 'lib/law/japan/e_gov/downloader.rb', line 14

def root_dir
  @root_dir
end

Instance Method Details

#download!Object



19
20
21
22
23
# File 'lib/law/japan/e_gov/downloader.rb', line 19

def download!
  logger.info "Start downloading all laws"
  download
  logger.info "Finish downloading all laws"
end