Sha256: ef237821f85ac8f92a2065f406f40af66626794832e49038ae8a7e0b9e917280

Contents?: true

Size: 1.61 KB

Versions: 45

Compression:

Stored size: 1.61 KB

Contents

# FileComment

## Example FileComment Object

```
{
  "id": 1,
  "body": "What a great file!",
  "reactions": [

  ]
}
```

* `id` (int64): File Comment ID
* `body` (string): Comment body.
* `reactions` (array): Reactions to this comment.
* `path` (string): File path.


---

## List File Comments by path

```
Files::FileComment.list_for(path, 
  page: 1, 
  per_page: 1
)
```

### Parameters

* `page` (int64): Current page number.
* `per_page` (int64): Number of records to show per page.  (Max: 10,000, 1,000 or less is recommended).
* `action` (string): Deprecated: If set to `count` returns a count of matching records rather than the records themselves.
* `path` (string): Required - Path to operate on.


---

## Create File Comment

```
Files::FileComment.create(
  body: "body", 
  path: "path"
)
```

### Parameters

* `body` (string): Required - Comment body.
* `path` (string): Required - File path.


---

## Update File Comment

```
Files::FileComment.update(id, 
  body: "body"
)
```

### Parameters

* `id` (int64): Required - File Comment ID.
* `body` (string): Required - Comment body.


---

## Delete File Comment

```
Files::FileComment.delete(id)
```

### Parameters

* `id` (int64): Required - File Comment ID.


---

## Update File Comment

```
file_comment = Files::FileComment.list_for(path).first

file_comment.update(
  body: "body"
)
```

### Parameters

* `id` (int64): Required - File Comment ID.
* `body` (string): Required - Comment body.


---

## Delete File Comment

```
file_comment = Files::FileComment.list_for(path).first

file_comment.delete
```

### Parameters

* `id` (int64): Required - File Comment ID.

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
files.com-1.0.104 docs/file_comment.md
files.com-1.0.103 docs/file_comment.md
files.com-1.0.102 docs/file_comment.md
files.com-1.0.101 docs/file_comment.md
files.com-1.0.100 docs/file_comment.md
files.com-1.0.99 docs/file_comment.md
files.com-1.0.98 docs/file_comment.md
files.com-1.0.97 docs/file_comment.md
files.com-1.0.96 docs/file_comment.md
files.com-1.0.95 docs/file_comment.md
files.com-1.0.94 docs/file_comment.md
files.com-1.0.93 docs/file_comment.md
files.com-1.0.92 docs/file_comment.md
files.com-1.0.91 docs/file_comment.md
files.com-1.0.90 docs/file_comment.md
files.com-1.0.89 docs/file_comment.md
files.com-1.0.88 docs/file_comment.md
files.com-1.0.87 docs/file_comment.md
files.com-1.0.86 docs/file_comment.md
files.com-1.0.85 docs/file_comment.md