Class: Zanshin::SDK::ScanTarget::DOMAIN

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

Instance Method Summary collapse

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

#domainObject

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