This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments