Class: PDTP::Client::FileService

Inherits:
FileService show all
Defined in:
lib/pdtp/client/file_service.rb

Overview

Container class for file data

Instance Method Summary collapse

Constructor Details

#initializeFileService

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