Module: Aitch::ResponseParser::DefaultParser

Defined in:
lib/aitch/response_parser/default_parser.rb

Class Method Summary collapse

Class Method Details

.load(source) ⇒ Object



14
15
16
# File 'lib/aitch/response_parser/default_parser.rb', line 14

def self.load(source)
  source.to_s
end

.match?(_content_type) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/aitch/response_parser/default_parser.rb', line 10

def self.match?(_content_type)
  true
end

.typeObject



6
7
8
# File 'lib/aitch/response_parser/default_parser.rb', line 6

def self.type
  :default
end