Method: Cwb::Client#deep_fetch

Defined in:
lib/cwb/client.rb

#deep_fetch(*keys) ⇒ String

Securly access nested attributes.

Examples:

Acess benchmark attribute hash

@cwb.deep_fetch("sysbench", "cli_options")

Access node attribute (collected by ohai)

@cwb.deep_fetch("cpu", "0", "model_name")

Returns:

  • (String)

    an empty string if attribute cannot be found



39
40
41
# File 'lib/cwb/client.rb', line 39

def deep_fetch(*keys)
  @config.deep_fetch(*keys)
end