lib/hackerone/client/report.rb in hackerone-client-0.5.1 vs lib/hackerone/client/report.rb in hackerone-client-0.5.2
- old
+ new
@@ -34,10 +34,10 @@
def payment_total
payments.reduce(0) { |total, payment| total + payment_amount(payment) }
end
def structured_scope
- StructuredScope.new(relationships[:structured_scope])
+ StructuredScope.new(relationships[:structured_scope].fetch(:data, {}))
end
# Excludes reports where the payout amount is 0 indicating swag-only or no
# payout for the issue supplied
def risk