Module: Aitch::ResponseParser::JSONParser
- Defined in:
- lib/aitch/response_parser/json_parser.rb
Class Attribute Summary collapse
-
.engine ⇒ Object
Returns the value of attribute engine.
Class Method Summary collapse
Class Attribute Details
.engine ⇒ Object
Returns the value of attribute engine.
7 8 9 |
# File 'lib/aitch/response_parser/json_parser.rb', line 7 def engine @engine end |
Class Method Details
.load(source) ⇒ Object
20 21 22 |
# File 'lib/aitch/response_parser/json_parser.rb', line 20 def self.load(source) engine.load(source.to_s) end |
.match?(content_type) ⇒ Boolean
16 17 18 |
# File 'lib/aitch/response_parser/json_parser.rb', line 16 def self.match?(content_type) content_type.include?("json") end |
.type ⇒ Object
12 13 14 |
# File 'lib/aitch/response_parser/json_parser.rb', line 12 def self.type :json end |