Class: Zanshin::SDK::ScanTarget::AWS

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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 = 
end

Instance Attribute Details

#accountObject

Returns the value of attribute account.



17
18
19
# File 'lib/zanshin/scan_target.rb', line 17

def 
  @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