Class: Arxiv::Downloader::Path
- Inherits:
-
Object
- Object
- Arxiv::Downloader::Path
- Defined in:
- lib/arxiv/downloader/path.rb
Instance Method Summary collapse
-
#initialize(metadata) ⇒ Path
constructor
A new instance of Path.
- #to_s ⇒ Object
Constructor Details
#initialize(metadata) ⇒ Path
Returns a new instance of Path.
4 5 6 |
# File 'lib/arxiv/downloader/path.rb', line 4 def initialize @metadata = end |
Instance Method Details
#to_s ⇒ Object
8 9 10 |
# File 'lib/arxiv/downloader/path.rb', line 8 def to_s [date_dir, category, "#{filesystem_safe_id}-#{slug}"].join '/' end |