Sha256: 7aec7035d96ef3d559cee93198a188cc319a18a1ef89f78620b7e7993243cd87
Contents?: true
Size: 275 Bytes
Versions: 6
Compression:
Stored size: 275 Bytes
Contents
class Person extend ActiveModel::Naming include ActiveModel::Serializers::Xml attr_accessor :name, :email def initialize(hash) hash.each do |key, value| instance_variable_set("@#{key}", value) end end def attributes instance_values end end
Version data entries
6 entries across 6 versions & 2 rubygems