Class: Zanshin::SDK::ScanTarget::DOMAIN
- Inherits:
-
Object
- Object
- Zanshin::SDK::ScanTarget::DOMAIN
- Defined in:
- lib/zanshin/scan_target.rb
Overview
DOMAIN scan target
Constant Summary collapse
- KIND =
Type of provider that will be sent to the API
'DOMAIN'
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
Instance Method Summary collapse
-
#initialize(domain) ⇒ DOMAIN
constructor
A new instance of DOMAIN.
-
#to_json(*_args) ⇒ Object
Convert DOMAIN class to json.
Constructor Details
#initialize(domain) ⇒ DOMAIN
Returns a new instance of DOMAIN.
101 102 103 |
# File 'lib/zanshin/scan_target.rb', line 101 def initialize(domain) @domain = domain end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
99 100 101 |
# File 'lib/zanshin/scan_target.rb', line 99 def domain @domain end |
Instance Method Details
#to_json(*_args) ⇒ Object
Convert DOMAIN class to json
106 107 108 109 110 |
# File 'lib/zanshin/scan_target.rb', line 106 def to_json(*_args) { 'domain' => @domain } end |