Class: Uuids::Uuid
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Uuids::Uuid
- Defined in:
- app/models/uuids/uuid.rb
Overview
The model describes uuids assigned to corresponding records. article.
Constant Summary collapse
- UUID =
Assigned by default on creation. Cannot be set or edited manually.
/[a-z\d]{8}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{12}/
Instance Attribute Summary collapse
-
#record ⇒ ActiveRecord::Base
An object the uuid is assigned to.
-
#value ⇒ String
readonly
Assigned by default on creation.
Instance Attribute Details
#record ⇒ ActiveRecord::Base
Returns an object the uuid is assigned to.
32 |
# File 'app/models/uuids/uuid.rb', line 32 belongs_to :record, polymorphic: true |
#value ⇒ String (readonly)
Assigned by default on creation. Cannot be set or edited manually.
25 |
# File 'app/models/uuids/uuid.rb', line 25 UUID = /[a-z\d]{8}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{12}/ |