<commit_before>module Lobbyist
  module V2
    class DefaultReviewDestination < Lobbyist::V2::Base
      attr_accessor :id, :display_name, :domain

      def self.list(params = {})
        create_collection_from_response(get('/v2/default_review_destinations.json', params))
      end

      def self.find(id, company_id)
        create_from_response(get("/v2/default_review_destinations/#{id}.json", company_id: company_id ))
      end

      def self.create(company_id, params)
        create_from_response(post("/v2/default_review_destinations.json", review_destination: params ))
      end

      def self.update(id, company_id, params)
        create_from_response(put("/v2/default_review_destinations/#{id}.json", review_destination: params ))
      end

      def self.destroy(id, company_id)
        create_from_response(delete("/v2/default_review_destinations/#{id}.json"))
      end
    end
  end
end<commit_msg>CA-10713 add methods to DefaultReviewDestination<commit_after>module Lobbyist
  module V2
    class DefaultReviewDestination < Lobbyist::V2::Base
      attr_accessor :id, :display_name, :domain

      def self.list(params = {})
        create_collection_from_response(get('/v2/default_review_destinations.json', params))
      end

      def self.find(id, company_id)
        create_from_response(get("/v2/default_review_destinations/#{id}.json", company_id: company_id ))
      end

      def self.create(company_id, params)
        create_from_response(post("/v2/default_review_destinations.json", default_review_destination: params ))
      end

      def self.update(id, company_id, params)
        create_from_response(put("/v2/default_review_destinations/#{id}.json", default_review_destination: params ))
      end

      def self.destroy(id, company_id)
        create_from_response(delete("/v2/default_review_destinations/#{id}.json"))
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10618066561014262, 'fraction_numerical': 0.010036978341257264, 'mean_word_length': 3.735, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7049985', 'n_tokens_mistral': 583, 'n_tokens_neox': 574, 'n_words': 95}