Sha256: c707086cec749a6f8665fb3337569d0e736689a270706ef6b171d403fb1684b5
Contents?: true
Size: 275 Bytes
Versions: 3
Compression:
Stored size: 275 Bytes
Contents
class User include ActiveModel::Serialization attr_accessor :first_name, :last_name, :password, :email def self.model_name to_s end def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end end
Version data entries
3 entries across 3 versions & 1 rubygems