Class: Law::Japan::EGov::Downloader
- Inherits:
-
Object
- Object
- Law::Japan::EGov::Downloader
- Defined in:
- lib/law/japan/e_gov/downloader.rb
Instance Attribute Summary collapse
-
#root_dir ⇒ Object
readonly
Returns the value of attribute root_dir.
Instance Method Summary collapse
- #download! ⇒ Object
-
#initialize(root_dir) ⇒ Downloader
constructor
A new instance of Downloader.
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_dir ⇒ Object (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 |