Module: FaradayCage::Response
- Defined in:
- lib/faraday_cage/response.rb
Class Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/faraday_cage/response.rb', line 4 def self.extended(base) base.instance_eval do alias :original_status :status def status finished? ? Status.new(env[:status]) : nil end end end |