def rules
      return [] if result[:rules].nil?
      Array.wrap(result[:rules][:rule_compliance_response]).map do |rule|
        ComplianceRule.new(rule)
      end
    end
def rules
      return [] if result[:rules].nil?
      Array.wrap(result[:rules][:rule_compliance_response]).map do |rule|
        ComplianceRule.new(rule)
      end
    end
Wraps the +RuleComplianceResponse+ nodes with ComplianceRule.

   compliance_errors = shipment.rules.reject { |r| r.compliant? }