Sha256: 01710dfa2eb52f15cded815e121703013b6053b177ce0ec171db114c8fd94e2e
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
module NSISam # @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') end attr_reader :key, :checksum, :data # Check if some data was deleted sucessfully # # @return [Boolean] was the object deleted? # def deleted? !!@deleted end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nsisam-0.6.0 | lib/nsisam/response.rb |