We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57e8e5e commit 6a250e0Copy full SHA for 6a250e0
1 file changed
README.md
@@ -14,6 +14,7 @@ A collection of Value Objects to save time by generalizing types and format vali
14
* [Nullable Int](#nullable-int)
15
* [String value-objects](#string-value-objects)
16
* [String](#string)
17
+ * [Nullable String](#nullable-string)
18
19
20
# Value-objects
@@ -64,4 +65,22 @@ my_str = String('potato')
64
65
66
# Getting raw value
67
my_str.value() # returns -> 'potato'
68
+```
69
+
70
+### Nullable String
71
72
+```python
73
+from pyvalueobjects import NullableString
74
75
+# Creation
76
+my_str = NullableString('potato')
77
78
+# Getting raw value
79
+my_str.value() # returns -> 'potato'
80
81
82
+my_nullable_str = NullableString(None)
83
84
85
+my_nullable_str.value() # returns -> None
86
```
0 commit comments