I have a gem that has an output with the following array (calling rate.inspect)
[#<Fedex::Rate:0x007f9552bd6200 @service_type="FEDEX_GROUND", @transit_time="TWO_DAYS", @rate_type="PAYOR_ACCOUNT_PACKAGE", @rate_zone="4", @total_billing_weight="8.0 LB", @total_freight_discounts={:currency=>"USD", :amount=>"0.0"}, @total_net_charge="18.92", @total_taxes="0.0", @total_net_freight="18.19", @total_surcharges="0.73", @total_base_charge="18.19", @total_net_fedex_charge=nil, @total_rebates="0.0">]
I can't seem to figure out what to call on rate to access the different values. I have tried rate.total_net_charge but I get:
undefined method `total_net_charge' for #<Array:0x007f955408caf0>
Advice?