documentation-zero 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2989992b190b783b8c1b3ce258176d949e229ce32bb7e045aa0257df0a084abd
|
4
|
+
data.tar.gz: 828dd73c95fe502c16e0b871e75c197cff726cb5de25da3c0c5a669d7b4b2210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa4e0d3497944a64a5a65f5a1a084d4db098c4ee299c6d5dce05dc134a0994c910aeb2a32cc9538e851d8f499ae7799753d62676c6eff42523cc19a32f7fc69c
|
7
|
+
data.tar.gz: eb239336346a5209254083744c3c1ea257da446d3be6e78bbd5071a35be4fbe4d0c872e9ac248b2406ea664d5269b4562a84088bd97ea16e7bb60cd2ccf97215
|
@@ -68,10 +68,11 @@ This endpoint will return `204 No Content` if successful. No parameters are requ
|
|
68
68
|
---
|
69
69
|
|
70
70
|
## Model
|
71
|
-
```
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
71
|
+
```mermaid
|
72
|
+
classDiagram
|
73
|
+
class Post {
|
74
|
+
string title
|
75
|
+
string content
|
76
|
+
boolean published
|
76
77
|
}
|
77
78
|
```
|
data/Gemfile.lock
CHANGED
@@ -68,17 +68,18 @@ This endpoint will return `204 No Content` if successful. No parameters are requ
|
|
68
68
|
---
|
69
69
|
|
70
70
|
## Model
|
71
|
-
```
|
72
|
-
|
71
|
+
```mermaid
|
72
|
+
classDiagram
|
73
|
+
class <%= class_name %> {
|
73
74
|
<% attributes.each do |attribute| -%>
|
74
75
|
<% if attribute.password_digest? -%>
|
75
|
-
|
76
|
+
string password_digest
|
76
77
|
<% elsif attribute.token? -%>
|
77
|
-
|
78
|
+
string <%= attribute.column_name %>
|
78
79
|
<% elsif attribute.reference? -%>
|
79
|
-
|
80
|
+
integer <%= attribute.column_name %>
|
80
81
|
<% elsif !attribute.virtual? -%>
|
81
|
-
|
82
|
+
<%= attribute.type %> <%= attribute.column_name %>
|
82
83
|
<% end -%>
|
83
84
|
<% end -%>
|
84
85
|
}
|