You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/v3/gists.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,11 +68,11 @@ Name | Type | Description
68
68
69
69
Name | Type | Description
70
70
-----|------|--------------
71
-
`files`|`hash` |**Required**. Files that make up this gist.
71
+
`files`|`object` |**Required**. Files that make up this gist.
72
72
`description`|`string` | A description of the gist.
73
73
`public`|`boolean` | Indicates whether the gist is public. Default:`false`
74
74
75
-
The keys in the`files`hash are the`string` filename, and the value is another`hash` with a key of`content`, and a value of the file contents. For example:
75
+
The keys in the`files`object are the`string` filename, and the value is another`object` with a key of`content`, and a value of the file contents. For example:
76
76
77
77
<%= json\
78
78
:description => "the description for this gist",
@@ -102,11 +102,11 @@ The keys in the `files` hash are the `string` filename, and the value is another
102
102
Name | Type | Description
103
103
-----|------|--------------
104
104
`description`|`string` | A description of the gist.
105
-
`files`|`hash` | Files that make up this gist.
105
+
`files`|`object` | Files that make up this gist.
106
106
`content`|`string` | Updated file contents.
107
107
`filename`|`string` | New name for this file.
108
108
109
-
The keys in the`files`hash are the`string` filename. The value is another`hash` with a key of`content` (indicating the new contents), or`filename` (indicating the new filename). For example:
109
+
The keys in the`files`object are the`string` filename. The value is another`object` with a key of`content` (indicating the new contents), or`filename` (indicating the new filename). For example: