lib/hackerone/client/program.rb in hackerone-client-0.6.0 vs lib/hackerone/client/program.rb in hackerone-client-0.7.0

- old
+ new

@@ -1,8 +1,12 @@ +require_relative './resource_helper' + module HackerOne module Client class Program + include ResourceHelper + delegate :handle, to: :attributes def self.find(program_handle_we_want) my_programs.find do |program| program.handle == program_handle_we_want @@ -33,9 +37,16 @@ members.find { |member| member.user.username == username } end def find_group(groupname) groups.find { |group| group.name == groupname } + end + + def common_responses(page_number: 1, page_size: 100) + make_get_request( + "programs/#{id}/common_responses", + params: { page: { number: page_number, size: page_size } } + ) end private def members