Sha256: 4a17bbdb1a454a43a85200a1099197a6dc18473c6ba38f689df4a83642f3d616
Contents?: true
Size: 266 Bytes
Versions: 4
Compression:
Stored size: 266 Bytes
Contents
# encoding: utf-8 module Twhois # Kinda acts like the Hashie gem class User def initialize(hash) hash.keys.each do |key| self.class.send(:attr_accessor, key.to_sym) self.send("#{key}=", hash[key]) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
twhois-0.0.4 | lib/twhois/user.rb |
twhois-0.0.3 | lib/twhois/user.rb |
twhois-0.0.2 | lib/twhois/user.rb |
twhois-0.0.1 | lib/twhois/user.rb |