Registry / orm / active-type

active-type

JSON →
library2.8.0rbrubygemsunverified

Make any Ruby object quack like ActiveRecord.

gem install active_type
INSTALL
IMPORT
SIG · ACTIVE-TYPE
A
active-type
ormrubyv2.8.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.

ActiveType
require 'active_type'

Define an ActiveType object with attributes and validations.

require 'active_type' class User < ActiveType::Object attribute :name, :string validates :name, presence: true end user = User.new(name: 'Alice') user.valid? # => true
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.8.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
59 hits · last 30 days
node
50
Resources
active-type — gem install active-type · libregistry