Sha256: 3496c2852792479aa41eeb77f4b32bf2a0ecf023dc89bf0c001248ffe26fb207
Contents?: true
Size: 377 Bytes
Versions: 5
Compression:
Stored size: 377 Bytes
Contents
module Supersaas class BaseModel attr_accessor :errors attr_reader :attributes def initialize(attributes) @attributes = attributes assign_attributes(attributes) end private def assign_attributes(attributes) attributes.each do |key, value| public_send("#{key}=", value) if respond_to?("#{key}=") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems