class UPS::Parsers::RatesParser
Public Instance Methods
rated_shipments()
click to toggle source
# File lib/ups/parsers/rates_parser.rb, line 5 def rated_shipments rates.map do |rated_shipment| RateParser.new(rated_shipment).to_h end end
Private Instance Methods
rates()
click to toggle source
# File lib/ups/parsers/rates_parser.rb, line 13 def rates normalize_response_into_array(root_response[:RatedShipment]) end
root_response()
click to toggle source
# File lib/ups/parsers/rates_parser.rb, line 17 def root_response parsed_response[:RatingServiceSelectionResponse] end