Method: Cassandra::Uuid#initialize
- Defined in:
- lib/cassandra/uuid.rb
#initialize(uuid) ⇒ Uuid
Creates a new UUID either from a string (expected to be on the standard 8-4-4-4-12 form, or just 32 characters without hyphens), or from a 128 bit number.
42 43 44 45 46 47 48 49 |
# File 'lib/cassandra/uuid.rb', line 42 def initialize(uuid) @n = case uuid when String from_s(uuid) else uuid end end |