Class: EndiciaLabelServer::Parsers::PostageRatesParser
- Inherits:
-
PostageRateParser
- Object
- Ox::Sax
- ParserBase
- PostageRateParser
- EndiciaLabelServer::Parsers::PostageRatesParser
- Defined in:
- lib/endicia_label_server/parsers/postage_rates_parser.rb
Instance Attribute Summary
Attributes inherited from PostageRateParser
Attributes inherited from ParserBase
#current_attributes, #error_description, #status_code, #switches
Instance Method Summary collapse
Methods inherited from PostageRateParser
#end_element, #initialize, #parse_mail_service, #parse_total_charges, #start_element
Methods inherited from ParserBase
#attr, #element_tracker_switch, #end_element, #initialize, #reset_current_attributes!, #start_element, #success?, #switch_active?
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 |
#value(value) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/endicia_label_server/parsers/postage_rates_parser.rb', line 8 def value(value) super if switch_active?(:MailClass) @current_rate[:mail_class] = value.as_s end end |