Class: Ecfr::SearchService::TitleFacet

Inherits:
FacetBase show all
Includes:
FacetAttributeMethodDefinition
Defined in:
lib/ecfr/search_service/title_facet.rb

Constant Summary

Constants inherited from FacetBase

FacetBase::COUNTS_PATH, FacetBase::VALID_SEARCH_OPTIONS

Constants inherited from Base

Base::SUPPORTED_ARRAY_ACCESSORS

Instance Attribute Summary collapse

Attributes inherited from Base

#metadata, #request_data, #response_status, #results

Class Method Summary collapse

Methods included from FacetAttributeMethodDefinition

#count_for, included, #initialize

Methods inherited from Base

base_url, service_name, service_path

Methods inherited from Base

basic_auth_client_options, #each, #initialize, metadata, metadata_key, result_key

Methods included from Extensible

#inherited

Methods included from AttributeMethodDefinition

included, #initialize

Methods inherited from Client

build, cache_key, client, client_pool, delete, execute, get, handle_response, perform, post, purge

Methods included from ParallelClient

included

Instance Attribute Details

#countString (readonly)

Returns:

  • (String)


8
# File 'lib/ecfr/search_service/title_facet.rb', line 8

attribute :count, as: :value

#titleString (readonly)

Returns:

  • (String)


9
# File 'lib/ecfr/search_service/title_facet.rb', line 9

attribute :title, as: :key

Class Method Details

.search(options = {}) ⇒ <TitleFacet>

Returns counts by title.

Returns:



12
13
14
15
# File 'lib/ecfr/search_service/title_facet.rb', line 12

def self.search(options = {})
  type = "titles"
  super(type, options)
end