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 =
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.
37 |
# File 'app/models/uuid.rb', line 37 belongs_to :record, polymorphic: true |
#value ⇒ String (readonly)
Assigned by default on creation. Cannot be set or edited manually.
30 |
# File 'app/models/uuid.rb', line 30 UUID = /[a-z\d]{8}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{4}-[a-z\d]{12}/ |