how do I extract @hostname value out of this data? e.g. to do what I was expecting puts output[:hostname]
{:status=>"passed",
:code_desc=>"Host example.com port 80 proto tcp is expected to be reachable",
:run_time=>0.207583,
:start_time=>"2020-08-27T21:02:07+01:00",
:resource_title=>
#<#<Class:0x00007f87f71ebeb0>:0x00007f87f71eaf38
@__backend_runner__=
Inspec::Backend::Class @transport=Train::Transports::Local::Connection,
@__resource_name__=:host,
@host_provider=
#<Inspec::Resources::DarwinHostProvider:0x00007f87f71e9a20
@has_nc=true,
@has_ncat=true,
@has_net_redirections=true,
@inspec=
Inspec::Backend::Class @transport=Train::Transports::Local::Connection>,
@hostname="example.com",
@ip_cache=["93.184.216.34", "2606:2800:220:1:248:1893:25c8:1946"],
@ping_cache=
{:success=>true,
:connection=>"Connection to example.com port 80 [tcp/http] succeeded!\n",
:socket=>""},
@port=80,
@protocol="tcp",
@resource_exception_message=nil,
@resource_failed=false,
@resource_skipped=false,
@supports=[{:platform=>"unix"}, {:platform=>"windows"}]>,
:expectation_message=>"is expected to be reachable",
:waiver_data=>nil}
Any help on documentation would be very gratefully received.