Skip to content

Commit e18180e

Browse files
committed
Update uuid4 VO readme.
#17
1 parent 8f4924f commit e18180e

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ A collection of Value Objects to save time by generalizing types and format vali
1515
* [String value-objects](#string-value-objects)
1616
* [String](#string)
1717
* [Nullable String](#nullable-string)
18+
* [Uuid4](#uuid4)
1819

1920

2021
# Value-objects
@@ -83,4 +84,16 @@ my_nullable_str = NullableString(None)
8384

8485
# Getting raw value
8586
my_nullable_str.value() # returns -> None
87+
```
88+
89+
### Uuid4
90+
91+
```python
92+
from pyvalueobjects import Uuid4
93+
94+
# Creation
95+
my_uuid4 = Uuid4('6c7add12-bf35-459e-a6c5-3178a2a33011')
96+
97+
# Getting raw value
98+
my_uuid4.value() # returns -> '6c7add12-bf35-459e-a6c5-3178a2a33011'
8699
```

0 commit comments

Comments
 (0)