Sha256: fee95cabbfd523460f9621454a1a4083287d562c219d6ef6da86f663e929a66c

Contents?: true

Size: 461 Bytes

Versions: 14

Compression:

Stored size: 461 Bytes

Contents

# frozen_string_literal: true

module Crunchbase
  # Get the Entities data from API
  module Models
    # For AutocompleteEntity
    class AutocompleteEntity < Entity
      def field_ids
        basis_fields
      end

      def basis_fields
        %w[
          identifier
          facet_ids
          short_description
        ]
      end

      def parse_response(response)
        dynamic_attributes(self, field_ids, response)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
crunchbase4-0.2.6 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.2.5 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.2.4 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.2.2 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.2.1 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.2.0 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.1.9 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.1.8 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.1.7 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.1.6 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.1.5 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.1.4 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.1.3 lib/crunchbase/models/autocomplete_entity.rb
crunchbase4-0.1.2 lib/crunchbase/models/autocomplete_entity.rb