lib/hackerone/client/activity.rb in hackerone-client-0.7.0 vs lib/hackerone/client/activity.rb in hackerone-client-0.8.0

- old
+ new

@@ -55,16 +55,21 @@ class CommentAdded < Activity delegate :message, :internal, to: :attributes end + class BountySuggested < Activity + delegate :message, :bounty_amount, :bonus_amount, to: :attributes + end + ACTIVITY_TYPE_CLASS_MAPPING = { 'activity-bounty-awarded' => BountyAwarded, 'activity-swag-awarded' => SwagAwarded, 'activity-user-assigned-to-bug' => UserAssignedToBug, 'activity-bug-triaged' => BugTriaged, 'activity-reference-id-added' => ReferenceIdAdded, - 'activity-comment' => CommentAdded + 'activity-comment' => CommentAdded, + 'activity-bounty-suggested' => BountySuggested }.freeze def self.build(activity_data) activity_type_class = ACTIVITY_TYPE_CLASS_MAPPING.fetch \ activity_data[:type], Activity