Skip to content

Commit

Permalink
Add VO to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
javierparadadev committed Oct 2, 2023
1 parent ce7624f commit 4b49408
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ A collection of Value Objects to save time by generalizing types and format vali
* [Nullable Uuid4](#nullable-uuid4)
* [Date value-objects](#date-value-objects)
* [ISO Date](#iso-date)
* [Data Structures value-objects](#data-structures-value-objects)
* [ArrayList](#arraylist)
* [Security value-objects](#security-value-objects)
* [CVE](#cve)
* [Nullable CVE](#nullable-cve)
Expand Down Expand Up @@ -175,6 +177,21 @@ my_date = IsoDate('2023-08-15T04:55:12.076Z')
my_date.value() # returns -> '2023-08-15T04:55:12.076Z'
```

## Data structures value-objects

### ArrayList

```python
from pyvalueobjects import ArrayList
from pyvalueobjects import Int

# Creation
my_int_array = ArrayList(Int)([39])

# Getting raw value
my_int_array.value() # returns -> [39]
```

## Security value-objects

### CVE
Expand Down

0 comments on commit 4b49408

Please sign in to comment.