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

#binaryedge_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#censys_idString? (readonly)

Returns:

  • (String, nil)


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


#circl_passive_passwordString? (readonly)

Returns:

  • (String, nil)


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


#circl_passive_usernameString? (readonly)

Returns:

  • (String, nil)


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


#database_urlURI

Returns:

  • (URI)


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


#fofa_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#fofa_emailString? (readonly)

Returns:

  • (String, nil)


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


#greynoise_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#hide_config_valuesBoolean (readonly)

Returns:

  • (Boolean)


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


#hunterhow_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#ignore_errorBoolean (readonly)

Returns:

  • (Boolean)


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


#misp_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#misp_urlString? (readonly)

Returns:

  • (String, nil)


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


#onyphe_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#otx_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#pagination_intervalInteger (readonly)

Returns:

  • (Integer)


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


#pagination_limitInteger (readonly)

Returns:

  • (Integer)


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


#parallelBoolean (readonly)

Returns:

  • (Boolean)


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


#passivetotal_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#passivetotal_usernameString? (readonly)

Returns:

  • (String, nil)


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


#pulsedive_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#retry_exponential_backoffBoolean (readonly)

Returns:

  • (Boolean)


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


#retry_intervalInteger (readonly)

Returns:

  • (Integer)


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


#retry_timesInteger (readonly)

Returns:

  • (Integer)


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


#securitytrails_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#sentry_dsnString? (readonly)

Returns:

  • (String, nil)


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


#sentry_trace_sample_rateFloat (readonly)

Returns:

  • (Float)


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


#shodan_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#sidekiq_redis_urlURI?

Returns:

  • (URI, nil)


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

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

#slack_channelString? (readonly)

Returns:

  • (String, nil)


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


#slack_webhook_urlString? (readonly)

Returns:

  • (String, nil)


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


#thehive_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#thehive_urlString? (readonly)

Returns:

  • (String, nil)


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


#urlscan_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#virustotal_api_keyString? (readonly)

Returns:

  • (String, nil)


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


#zoomeye_api_keyString? (readonly)

Returns:

  • (String, nil)


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


Instance Method Details

#keysArray<String>

Returns:

  • (Array<String>)


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

def keys
  to_h.keys.map(&:to_s).map(&:upcase)
end