class WellsFargo::Response
Attributes
raw_response[R]
Public Class Methods
new(raw_response)
click to toggle source
# File lib/wells_fargo/response.rb, line 14 def initialize(raw_response) @raw_response = raw_response end
Public Instance Methods
body()
click to toggle source
# File lib/wells_fargo/response.rb, line 18 def body @body ||= JSON.parse(raw_response.body, symbolize: true) end
success?()
click to toggle source
# File lib/wells_fargo/response.rb, line 22 def success? !body.key?(:errors) end