Class: Fiddler::Parsers::AttachmentParser

Inherits:
BaseParser
  • Object
show all
Defined in:
lib/fiddler/parsers/attachment_parser.rb

Constant Summary

Constants inherited from BaseParser

BaseParser::ERROR_CODES, BaseParser::SUCCESS_CODES

Class Method Summary collapse

Methods inherited from BaseParser

check_response_code, tokenize_response

Class Method Details

.parse_content(response) ⇒ Object



10
11
12
13
# File 'lib/fiddler/parsers/attachment_parser.rb', line 10

def self.parse_content(response)
   response = check_response_code(response,false,false)
   return response.join("\n")
end

.parse_single(response) ⇒ Object



4
5
6
7
8
# File 'lib/fiddler/parsers/attachment_parser.rb', line 4

def self.parse_single(response)
   response = check_response_code(response)
   response = check_for_errors(response)
   attachment_from_response(response)
end