Sha256: cd0e91f9598bea644470207f25a2405e2adfb5d531c94a7cda6326d47cc33b15
Contents?: true
Size: 736 Bytes
Versions: 2
Compression:
Stored size: 736 Bytes
Contents
# frozen_string_literal: true module Excon module HyperMedia module Ext # Ext::Response # # Overloads the default `Excon::Response` to add a thin HyperMedia layer # on top. # module Response def method_missing(method_name, *params) hypermedia_response.handle(method_name, *params) || super end def respond_to_missing?(method_name, include_private = false) hypermedia_response.handle(method_name, *params) != false || super end def hypermedia_response @hypermedia_response ||= HyperMedia::Response.new(self) end end end end # :nodoc: class Response prepend HyperMedia::Ext::Response end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
excon-hypermedia-0.3.0 | lib/excon/hypermedia/ext/response.rb |
excon-hypermedia-0.2.0 | lib/excon/hypermedia/ext/response.rb |