Registry / utility / model-attribute

model-attribute

JSON →
library3.2.0rbrubygemsunverified

Provides attributes with dirty tracking for non-ActiveRecord models, offering a simpler alternative to Virtus.

gem install model_attribute
INSTALL
IMPORT
SIG · MODEL-ATTRIBUTE
M
model-attribute
utilityrubyv3.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ModelAttribute
require 'model_attribute'

Define attributes on a plain Ruby class with dirty tracking.

require 'model_attribute' class Person include ModelAttribute attribute :name, :string attribute :age, :integer end person = Person.new(name: 'Alice', age: 30) puts person.name
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
model-attribute — gem install model-attribute · libregistry