Class: Peddler::XMLParser Private
- Inherits:
 - 
      SimpleDelegator
      
        
- Object
 - SimpleDelegator
 - Peddler::XMLParser
 
 
- Defined in:
 - lib/peddler/xml_parser.rb
 
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #next_token ⇒ Object private
 - #parse ⇒ Object private
 - #valid? ⇒ Boolean private
 - #xml ⇒ Object private
 
Instance Method Details
#next_token ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      7 8 9  | 
    
      # File 'lib/peddler/xml_parser.rb', line 7 def next_token parse.fetch('NextToken', false) end  | 
  
#parse ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      11 12 13  | 
    
      # File 'lib/peddler/xml_parser.rb', line 11 def parse @result ||= find_result end  | 
  
#valid? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      19 20 21  | 
    
      # File 'lib/peddler/xml_parser.rb', line 19 def valid? headers['Content-Length'].to_i == body.size if headers['Content-Length'] end  | 
  
#xml ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      15 16 17  | 
    
      # File 'lib/peddler/xml_parser.rb', line 15 def xml MultiXml.parse(body) end  |