Class: Zanshin::SDK::ScanTarget::GCP
- Inherits:
-
Object
- Object
- Zanshin::SDK::ScanTarget::GCP
- Defined in:
- lib/zanshin/scan_target.rb
Overview
GCP scan target
Constant Summary collapse
- KIND =
Type of provider that will be sent to the API
'GCP'
Instance Attribute Summary collapse
-
#project_id ⇒ Object
Returns the value of attribute project_id.
Instance Method Summary collapse
-
#initialize(project_id) ⇒ GCP
constructor
A new instance of GCP.
-
#to_json(*_args) ⇒ Object
Convert GCP class to json.
Constructor Details
#initialize(project_id) ⇒ GCP
Returns a new instance of GCP.
63 64 65 |
# File 'lib/zanshin/scan_target.rb', line 63 def initialize(project_id) @project_id = project_id end |
Instance Attribute Details
#project_id ⇒ Object
Returns the value of attribute project_id.
61 62 63 |
# File 'lib/zanshin/scan_target.rb', line 61 def project_id @project_id end |
Instance Method Details
#to_json(*_args) ⇒ Object
Convert GCP class to json
68 69 70 71 72 |
# File 'lib/zanshin/scan_target.rb', line 68 def to_json(*_args) { 'project_id' => @project_id } end |