Sha256: 162398b92fadab4b319fccd49594a9e76bb290eb8b6bcf8539e6dbb4272934ab

Contents?: true

Size: 326 Bytes

Versions: 2

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

2 entries across 2 versions & 1 rubygems

Version Path
redis_importer-0.0.9 test/lib/person.rb
redis_importer-0.0.8 test/lib/person.rb