Sha256: 2420e79532270cae7bc465849b8c1c7e8eaf6f47235d84f0172ab12b2c955dd6
Contents?: true
Size: 326 Bytes
Versions: 1
Compression:
Stored size: 326 Bytes
Contents
class Person attr_reader :id, :first_name, :last_name def initialize(args={}) @id = args["id"] @first_name = args["first_name"] @last_name = args["last_name"] end def to_redis() ["hset person:#{self.id} first_name #{self.first_name}", "hset person:#{self.id} last_name #{self.last_name}"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redis_importer-0.0.7 | test/lib/person.rb |