Class: Uuids::Models::Uuid
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Uuids::Models::Uuid
- Defined in:
- app/models/uuid.rb
Overview
The model describes uuids assigned to corresponding records. article.
Constant Summary collapse
- UUID =
The uuid value as defined in RFC4122
/\A\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\z/
Instance Attribute Summary collapse
-
#record ⇒ ActiveRecord::Base
The record the uuid is assigned to.
-
#value ⇒ String
The uuid value as defined in RFC4122.
Instance Attribute Details
#record ⇒ ActiveRecord::Base
The record the uuid is assigned to.
46 |
# File 'app/models/uuid.rb', line 46 belongs_to :record, polymorphic: true |
#value ⇒ String
The uuid value as defined in RFC4122
38 |
# File 'app/models/uuid.rb', line 38 UUID = /\A\h{8}-\h{4}-\h{4}-\h{4}-\h{12}\z/ |