lib/hackerone/client/report.rb in hackerone-client-0.2.2 vs lib/hackerone/client/report.rb in hackerone-client-0.2.3

- old
+ new

@@ -54,10 +54,10 @@ def summary attributes[:vulnerability_information] end def weakness - @weakness ||= Weakness.new relationships[:weakness][:data][:attributes] + @weakness ||= Weakness.new(relationships.fetch(:weakness, {}).fetch(:data, {}).fetch(:attributes, {})) end def classification_label weakness.to_owasp end