Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit d7bc3db

Browse files
author
clittle
committed
Fixed documentation
1 parent 8b0ecf9 commit d7bc3db

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

layers/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ The Layer class provides format validation and read/write capabilities to aid in
2323

2424
| method [x = Layer()]| description |
2525
|:-------|:------------|
26-
| x.from_str(_input_) | Loads an ATT&CK layer from either a string representation of a dictionary. |
27-
| x.from_dict(_input_) | Loads an ATT&CK layer from either a dictionary. |
28-
| x.from_file(_input_) | Loads an ATT&CK layer from a file location specified by the _input_. |
29-
| x.to_file(_input_) | Saves the current state of the loaded ATT&CK layer to a json file denoted by the _input_. |
26+
| x.from_str(_input_) | Loads an ATT&CK layer from a string representation of a json layer. |
27+
| x.from_dict(_input_) | Loads an ATT&CK layer from a dictionary. |
28+
| x.from_file(_filepath_) | Loads an ATT&CK layer from a file location specified by the _filepath_. |
29+
| x.to_file(_filepath_) | Saves the current state of the loaded ATT&CK layer to a json file denoted by the _filepath_. |
3030
| x.to_dict() | Returns a representation of the current ATT&CK layer object as a dictionary. |
3131
| x.to_str() | Returns a representation of the current ATT&CK layer object as a string representation of a dictionary. |
3232

layers/core/layer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Layer:
1313
def __init__(self, init_data={}, strict=True):
1414
"""
1515
Initialization - create a new Layer object
16-
:param init_dict: Optionally provide base Layer json or string
16+
:param init_data: Optionally provide base Layer json or string
1717
data on initialization
1818
"""
1919
self.__layer = None

0 commit comments

Comments
 (0)