class DwollaV2::Response
Public Class Methods
new(response)
click to toggle source
# File lib/dwolla_v2/response.rb, line 7 def initialize response @response = response end
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/dwolla_v2/response.rb, line 35 def == other super || response_body == other end
inspect()
click to toggle source
# File lib/dwolla_v2/response.rb, line 47 def inspect Util.pretty_inspect( self.class.name, { response_status: response_status, response_headers: response_headers }, response_body ) end
is_a?(klass)
click to toggle source
Calls superclass method
# File lib/dwolla_v2/response.rb, line 27 def is_a? klass super || response_body.is_a?(klass) end
kind_of?(klass)
click to toggle source
Calls superclass method
# File lib/dwolla_v2/response.rb, line 31 def kind_of? klass super || response_body.kind_of?(klass) end
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/dwolla_v2/response.rb, line 39 def method_missing method, *args, &block if response_body.respond_to? method response_body.public_send method, *args, &block else super end end
respond_to?(method, include_private = false)
click to toggle source
Calls superclass method
# File lib/dwolla_v2/response.rb, line 23 def respond_to? method, include_private = false super || response_body.respond_to?(method) end
response_headers()
click to toggle source
# File lib/dwolla_v2/response.rb, line 15 def response_headers if @response.respond_to? :response_headers @response.response_headers elsif @response.respond_to? :headers @response.headers end end
response_status()
click to toggle source
# File lib/dwolla_v2/response.rb, line 11 def response_status @response.status end
Private Instance Methods
response_body()
click to toggle source
# File lib/dwolla_v2/response.rb, line 57 def response_body @response.body end