class Fondy::Response
Public Instance Methods
error_code()
click to toggle source
# File lib/fondy/response.rb, line 12 def error_code response[:error_code] end
error_message()
click to toggle source
# File lib/fondy/response.rb, line 16 def error_message response[:error_message] end
method_missing(method, *_args)
click to toggle source
Calls superclass method
# File lib/fondy/response.rb, line 20 def method_missing(method, *_args) response[method] || super end
respond_to_missing?(method, *_args)
click to toggle source
# File lib/fondy/response.rb, line 24 def respond_to_missing?(method, *_args) response.key?(method) end
success?()
click to toggle source
# File lib/fondy/response.rb, line 8 def success? response[:response_status] == 'success' end
to_h()
click to toggle source
# File lib/fondy/response.rb, line 4 def to_h response end