class NSISam::Response

@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

Attributes

checksum[R]
data[R]
file[R]
filename[R]
key[R]

Public Class Methods

new(hash) click to toggle source
# File lib/nsisam/response.rb, line 6
def initialize(hash)
  @key, @checksum, @data, @deleted, @filename, @file = hash.values_at(
    'key', 'checksum', 'data', 'deleted', 'filename', 'file')
end

Public Instance Methods

deleted?() click to toggle source

Check if some data was deleted sucessfully

@return [Boolean] was the object deleted?

# File lib/nsisam/response.rb, line 17
def deleted?
  !!@deleted
end