Class: Zanshin::SDK::ScanTarget::AWS
- Inherits:
-
Object
- Object
- Zanshin::SDK::ScanTarget::AWS
- Defined in:
- lib/zanshin/scan_target.rb
Overview
AWS scan target
Constant Summary collapse
- KIND =
Type of provider that will be sent to the API
'AWS'
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
Instance Method Summary collapse
-
#initialize(account) ⇒ AWS
constructor
A new instance of AWS.
-
#to_json(*_args) ⇒ Object
Convert AWS class to json.
Constructor Details
#initialize(account) ⇒ AWS
Returns a new instance of AWS.
19 20 21 |
# File 'lib/zanshin/scan_target.rb', line 19 def initialize(account) @account = account end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
17 18 19 |
# File 'lib/zanshin/scan_target.rb', line 17 def account @account end |
Instance Method Details
#to_json(*_args) ⇒ Object
Convert AWS class to json
24 25 26 27 28 |
# File 'lib/zanshin/scan_target.rb', line 24 def to_json(*_args) { 'account' => @account } end |