lib/hackerone/client/activity.rb in hackerone-client-0.11.0 vs lib/hackerone/client/activity.rb in hackerone-client-0.12.0
- old
+ new
@@ -44,10 +44,16 @@
class UserAssignedToBug < Activity
delegate :assigned_user, to: :relationships
end
+ class GroupAssignedToBug < Activity
+ def group
+ HackerOne::Client::Group.new(relationships.group[:data])
+ end
+ end
+
class BugTriaged < Activity
end
class ReferenceIdAdded < Activity
delegate :reference, :reference_url, to: :attributes
@@ -63,9 +69,10 @@
ACTIVITY_TYPE_CLASS_MAPPING = {
'activity-bounty-awarded' => BountyAwarded,
'activity-swag-awarded' => SwagAwarded,
'activity-user-assigned-to-bug' => UserAssignedToBug,
+ 'activity-group-assigned-to-bug' => GroupAssignedToBug,
'activity-bug-triaged' => BugTriaged,
'activity-reference-id-added' => ReferenceIdAdded,
'activity-comment' => CommentAdded,
'activity-bounty-suggested' => BountySuggested
}.freeze