lib/hackerone/client/program.rb in hackerone-client-0.13.0 vs lib/hackerone/client/program.rb in hackerone-client-0.14.0
- old
+ new
@@ -54,9 +54,17 @@
"programs/#{id}/common_responses",
params: { page: { number: page_number, size: page_size } }
)
end
+ def swag(page_number: 1, page_size: 100)
+ response_body = make_get_request(
+ "programs/#{id}/swag",
+ params: { page: { number: page_number, size: page_size } }
+ )
+ response_body.map{|r| Swag.new(r, self) }
+ end
+
private
def members
@members ||= relationships.members[:data].map { |member_data| Member.new(member_data) }
end