module LHS::Proxy::Problems
Public Class Methods
new(data)
click to toggle source
Calls superclass method
# File lib/lhs/concerns/proxy/problems.rb, line 14 def initialize(data) super(data) end
Public Instance Methods
errors()
click to toggle source
# File lib/lhs/concerns/proxy/problems.rb, line 18 def errors response = (_raw.present? && _raw.is_a?(Hash) && _raw[:field_errors]) ? OpenStruct.new(body: _raw.to_json) : nil @errors ||= LHS::Problems::Errors.new(response, record) end
warnings()
click to toggle source
# File lib/lhs/concerns/proxy/problems.rb, line 23 def warnings @warnings ||= LHS::Problems::Warnings.new(_raw, record) end