Sha256: 2bb884b23d0af125348c29994ef8a6830ffbd1d7538aea278031aea9015a06af
Contents?: true
Size: 461 Bytes
Versions: 6
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true class User include ActiveModel::Serialization attr_accessor :id, :first_name, :last_name, :password, :email def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end def attributes { 'id' => nil, 'first_name' => nil, 'last_name' => nil, 'password' => nil, 'email' => nil } end def blog_post_ids [] end end
Version data entries
6 entries across 6 versions & 2 rubygems