lib/nsisam/response.rb in nsisam-0.6.0 vs lib/nsisam/response.rb in nsisam-0.6.1
- old
+ new
@@ -2,20 +2,20 @@
# @attr [String] key The key of the stored data/file
# @attr [String] checksum The checksum of the stored data/file
# @attr [Hash, String, Array] data The stored object
class Response
def initialize(hash)
- @key, @checksum, @data, @deleted = hash.values_at(
- 'key', 'checksum', 'data', 'deleted')
+ @key, @checksum, @data, @deleted, @filename, @file = hash.values_at(
+ 'key', 'checksum', 'data', 'deleted', 'filename', 'file')
end
- attr_reader :key, :checksum, :data
+ attr_reader :key, :checksum, :data, :filename, :file
# Check if some data was deleted sucessfully
#
# @return [Boolean] was the object deleted?
#
def deleted?
!!@deleted
end
end
-end
+end
\ No newline at end of file