Sha256: c491d84079ad5bbaceab75346c01bb850422504a07b8ed1b8bc9fc15da5d508f

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

module Crunchbase
  # Whole Searches endpoints
  module Searches
    # Send request for entities endpoints
    class Client
      include ::Crunchbase::Utilities::Request

      ROOT_LIST = 'searches'
      LIMIT = 100

      def initialize(field_id, value)
        @field_id = field_id
        @value = value
      end

      # Will include all attribute from API document
      def search
        search(root_uri, query_conditions)
      end

      private

      def root_uri
        [ROOT_LIST, endpoint].compact.join('/')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crunchbase4-0.1.0 lib/crunchbase/searches/client.rb