Class: Zanshin::SDK::ScanTarget::HUAWEI
- Inherits:
-
Object
- Object
- Zanshin::SDK::ScanTarget::HUAWEI
- Defined in:
- lib/zanshin/scan_target.rb
Overview
HUAWEI scan target
Constant Summary collapse
- KIND =
Type of provider that will be sent to the API
'HUAWEI'
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
Instance Method Summary collapse
-
#initialize(account_id) ⇒ HUAWEI
constructor
A new instance of HUAWEI.
-
#to_json(*_args) ⇒ Object
Convert HUAWEI class to json.
Constructor Details
#initialize(account_id) ⇒ HUAWEI
Returns a new instance of HUAWEI.
82 83 84 |
# File 'lib/zanshin/scan_target.rb', line 82 def initialize(account_id) @account_id = account_id end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
80 81 82 |
# File 'lib/zanshin/scan_target.rb', line 80 def account_id @account_id end |
Instance Method Details
#to_json(*_args) ⇒ Object
Convert HUAWEI class to json
87 88 89 90 91 |
# File 'lib/zanshin/scan_target.rb', line 87 def to_json(*_args) { 'account_id' => @account_id } end |