class ActiveRecord::Remote::Response
Attributes
options[RW]
parsed[RW]
parsed_response[RW]
Public Class Methods
new(options)
click to toggle source
# File lib/active_record/remote/response.rb, line 9 def initialize(options) @options = options handle_response(options[:raw_response]) end
Public Instance Methods
handle_response(response)
click to toggle source
# File lib/active_record/remote/response.rb, line 26 def handle_response(response) # implement in subclass end
operation()
click to toggle source
# File lib/active_record/remote/response.rb, line 14 def operation options[:operation] end
record_instance()
click to toggle source
# File lib/active_record/remote/response.rb, line 18 def record_instance options[:instance] end
response_message()
click to toggle source
# File lib/active_record/remote/response.rb, line 30 def response_message # implement in subclass end
success?()
click to toggle source
# File lib/active_record/remote/response.rb, line 22 def success? record_instance.errors.blank? end
valid?()
click to toggle source
# File lib/active_record/remote/response.rb, line 34 def valid? # implement in subclass end