Class: PDTP::Client::FileService
- Inherits:
-
FileService
- Object
- FileService
- PDTP::Client::FileService
- Defined in:
- lib/pdtp/client/file_service.rb
Overview
Container class for file data
Instance Method Summary collapse
- #get_info(url) ⇒ Object
-
#initialize ⇒ FileService
constructor
A new instance of FileService.
- #set_info(url, info) ⇒ Object
Constructor Details
#initialize ⇒ FileService
Returns a new instance of FileService.
56 57 58 |
# File 'lib/pdtp/client/file_service.rb', line 56 def initialize @files = {} end |
Instance Method Details
#get_info(url) ⇒ Object
60 61 62 |
# File 'lib/pdtp/client/file_service.rb', line 60 def get_info(url) @files[url] rescue nil end |
#set_info(url, info) ⇒ Object
64 65 66 |
# File 'lib/pdtp/client/file_service.rb', line 64 def set_info(url, info) @files[url] = info end |