Class: RubyCqrs::Guid
- Inherits:
-
Object
- Object
- RubyCqrs::Guid
- Defined in:
- lib/ruby_cqrs/guid.rb
Class Method Summary collapse
Class Method Details
.create ⇒ Object
5 6 7 |
# File 'lib/ruby_cqrs/guid.rb', line 5 def self.create UUIDTools::UUID..to_s end |
.validate?(guid) ⇒ Boolean
9 10 11 |
# File 'lib/ruby_cqrs/guid.rb', line 9 def self.validate?(guid) UUIDTools::UUID.parse(guid).valid? end |