Class: Ecfr::SearchService::FacetBase
- Defined in:
- lib/ecfr/search_service/facet_base.rb
Direct Known Subclasses
Constant Summary collapse
- COUNTS_PATH =
"v1/counts"
- VALID_SEARCH_OPTIONS =
%i[ hierarchy last_modified_after last_modified_on_or_after last_modified_before last_modified_on_or_before query reserved substantive ]
Constants inherited from Base
Base::SUPPORTED_ARRAY_ACCESSORS
Instance Attribute Summary
Attributes inherited from Base
#metadata, #request_data, #response_status, #results
Class Method Summary collapse
-
.search(type, args = {}) ⇒ <DateFacet>
Retrive counts of changed CFR sections by date.
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
Methods included from AttributeMethodDefinition
Methods inherited from Client
build, cache_key, client, client_pool, delete, execute, get, handle_response, perform, post, purge
Methods included from ParallelClient
Constructor Details
This class inherits a constructor from Ecfr::Base
Class Method Details
.search(type, args = {}) ⇒ <DateFacet>
Retrive counts of changed CFR sections by date
21 22 23 24 25 26 27 28 29 |
# File 'lib/ecfr/search_service/facet_base.rb', line 21 def self.search(type, args = {}) (args) perform( :get, counts_path(type), params: args ) end |