Class: PgFuncall::PGUUID
Instance Attribute Summary
Attributes inherited from Typed
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(uuid) ⇒ PGUUID
constructor
A new instance of PGUUID.
- #to_s ⇒ Object
Methods inherited from Typed
Constructor Details
#initialize(uuid) ⇒ PGUUID
Returns a new instance of PGUUID.
83 84 85 |
# File 'lib/pg_funcall.rb', line 83 def initialize(uuid) super(uuid, 'uuid') end |
Class Method Details
.generate ⇒ Object
87 88 89 |
# File 'lib/pg_funcall.rb', line 87 def self.generate PGUUID.initialize(UUID.new.generate) end |
Instance Method Details
#to_s ⇒ Object
91 92 93 |
# File 'lib/pg_funcall.rb', line 91 def to_s self.value end |