Class: Mihari::Config

Inherits:
Anyway::Config
  • Object
show all
Defined in:
lib/mihari/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#analyzer_parallelismBoolean (readonly)

Returns:

  • (Boolean)


# File 'lib/mihari/config.rb', line 163

#binaryedge_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 58

#censys_idString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 61

#circl_passive_passwordString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 64

#circl_passive_usernameString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 67

#database_urlURI

Returns:

  • (URI)


# File 'lib/mihari/config.rb', line 70

#emitter_parallelismBoolean (readonly)

Returns:

  • (Boolean)


# File 'lib/mihari/config.rb', line 166

#fofa_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 73

#fofa_emailString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 76

#greynoise_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 79

#hide_config_valuesBoolean (readonly)

Returns:

  • (Boolean)


# File 'lib/mihari/config.rb', line 172

#hunterhow_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 82

#ignore_errorBoolean (readonly)

Returns:

  • (Boolean)


# File 'lib/mihari/config.rb', line 169

#misp_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 88

#misp_urlString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 85

#onyphe_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 91

#otx_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 94

#pagination_intervalInteger (readonly)

Returns:

  • (Integer)


# File 'lib/mihari/config.rb', line 157

#pagination_limitInteger (readonly)

Returns:

  • (Integer)


# File 'lib/mihari/config.rb', line 160

#passivetotal_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 97

#passivetotal_usernameString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 100

#pulsedive_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 103

#retry_exponential_backoffBoolean (readonly)

Returns:

  • (Boolean)


# File 'lib/mihari/config.rb', line 154

#retry_intervalInteger (readonly)

Returns:

  • (Integer)


# File 'lib/mihari/config.rb', line 148

#retry_timesInteger (readonly)

Returns:

  • (Integer)


# File 'lib/mihari/config.rb', line 151

#securitytrails_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 106

#sentry_dsnString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 142

#sentry_trace_sample_rateFloat (readonly)

Returns:

  • (Float)


# File 'lib/mihari/config.rb', line 145

#shodan_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 109

#sidekiq_redis_urlURI?

Returns:

  • (URI, nil)


# File 'lib/mihari/config.rb', line 175

#sidekiq_retryInteger (readonly)

Returns:

  • (Integer)


181
182
183
# File 'lib/mihari/config.rb', line 181

def database_url=(val)
  super(URI(val.to_s))
end

#slack_channelString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 112

#slack_webhook_urlString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 115

#thehive_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 121

#thehive_urlString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 118

#urlscan_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 124

#validin_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 127

#virustotal_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 130

#yeti_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 136

#yeti_urlString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 133

#zoomeye_api_keyString? (readonly)

Returns:

  • (String, nil)


# File 'lib/mihari/config.rb', line 139

Instance Method Details

#keysArray<String>

Returns:

  • (Array<String>)


192
193
194
# File 'lib/mihari/config.rb', line 192

def keys
  @keys ||= to_h.keys.map(&:to_s).map(&:downcase)
end