Class: EndiciaLabelServer::Parsers::PostageRatesParser

Inherits:
PostageRateParser show all
Defined in:
lib/endicia_label_server/parsers/postage_rates_parser.rb

Instance Attribute Summary

Attributes inherited from PostageRateParser

#rated_shipments

Attributes inherited from ParserBase

#error_description, #status_code, #switches

Instance Method Summary collapse

Methods inherited from PostageRateParser

#end_element, #initialize, #parse_mail_service, #parse_total_charges, #start_element, #value

Methods inherited from ParserBase

#element_tracker_switch, #end_element, #initialize, #start_element, #success?, #switch_active?, #value

Constructor Details

This class inherits a constructor from EndiciaLabelServer::Parsers::PostageRateParser

Instance Method Details

#attr_value(name, value) ⇒ Object


4
5
6
# File 'lib/endicia_label_server/parsers/postage_rates_parser.rb', line 4

def attr_value(name, value)
  @current_rate[:total] = value.as_s if name == :TotalAmount
end