Class: Continuum::LevelAccessPlatform
- Inherits:
-
Object
- Object
- Continuum::LevelAccessPlatform
- Defined in:
- src/lib/continuum/level_access_platform.rb
Overview
A class which encapsulates the properties associated with integration to Level Access Platform.
Instance Attribute Summary collapse
-
#api_key ⇒ String
Gets the value for the ‘apiKey’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json.
-
#digital_property_id ⇒ String
Gets the value for the ‘digitalPropetyId’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json.
-
#org_instance_url ⇒ String
Gets the value for the ‘orgInstanceUrl’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json.
-
#scan_tag_id ⇒ String
Gets the value for the ‘scanTagId’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json.
-
#workspace_id ⇒ String
Gets the value for the ‘workspaceId’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json.
Instance Method Summary collapse
-
#initialize(platform_config) ⇒ LevelAccessPlatform
constructor
Creates a new LevelAccessPlatform instance.
Constructor Details
#initialize(platform_config) ⇒ LevelAccessPlatform
Creates a new LevelAccessPlatform instance.
45 46 47 48 49 50 51 |
# File 'src/lib/continuum/level_access_platform.rb', line 45 def initialize(platform_config) @api_key = platform_config['apiKey'] @org_instance_url = platform_config['orgInstanceUrl'] @workspace_id = platform_config['workspaceId'] @digital_property_id = platform_config['digitalPropertyId'] @scan_tag_id = platform_config['scanTagId'] end |
Instance Attribute Details
#api_key ⇒ String
Gets the value for the ‘apiKey’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json. The API key is required to be sent with every request when connecting to Level Access Platform.
12 13 14 |
# File 'src/lib/continuum/level_access_platform.rb', line 12 def api_key @api_key end |
#digital_property_id ⇒ String
Gets the value for the ‘digitalPropetyId’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json. The default digital property id used when opening a new scan session. This value may be omitted as long as you provide a valid value when opening a new scan session.
32 33 34 |
# File 'src/lib/continuum/level_access_platform.rb', line 32 def digital_property_id @digital_property_id end |
#org_instance_url ⇒ String
Gets the value for the ‘orgInstanceUrl’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json. The URL of the organization instance to which you will be connecting, opening a session, and sending results.
18 19 20 |
# File 'src/lib/continuum/level_access_platform.rb', line 18 def org_instance_url @org_instance_url end |
#scan_tag_id ⇒ String
Gets the value for the ‘scanTagId’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json. The default scan tag id used when opening a new scan session. This value may be omitted as long as you provide a valid value when opening a new scan session.
39 40 41 |
# File 'src/lib/continuum/level_access_platform.rb', line 39 def scan_tag_id @scan_tag_id end |
#workspace_id ⇒ String
Gets the value for the ‘workspaceId’ attribute of the the ‘levelAccessPlatform’ object defined in continuum.json. The default workspace id used when opening a new scan session. This value may be omitted as long as you provide a valid value when opening a new scan session.
25 26 27 |
# File 'src/lib/continuum/level_access_platform.rb', line 25 def workspace_id @workspace_id end |