Sha256: 401387b820209d0f47fa02fa00e9b9d8608f8ad65c0518758f65132754869ff1

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

module Crunchbase
  # Utilities
  module Utilities
    # All Searches API endpoint
    module SearchEndpoints
      # For Searches
      def search_organizations(raw_data)
        searches(raw_data, 'organization').searches
      end

      def search_funding_rounds(raw_data)
        searches(raw_data, 'funding_round').searches
      end

      private

      def searches(raw_data, scope_name)
        Crunchbase::Searches::Client.new(raw_data, scope_name)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crunchbase4-0.1.1 lib/crunchbase/utilities/search_endpoints.rb