Module: Fetch::JSON
- Defined in:
- lib/fetch/json.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 |
# File 'lib/fetch/json.rb', line 3 def self.included(base) base.defaults do |req| req.parse { |body| ::JSON.parse(body) } end end |