Class: FederalRegister::Facet
- Extended by:
- Utilities
- Defined in:
- lib/federal_register/facet.rb
Direct Known Subclasses
Agency, Document, PresidentialDocumentType, PublicInspectionDocument, Topic
Defined Under Namespace
Classes: Agency, Document, PresidentialDocumentType, PublicInspectionDocument, PublicInspectionIssue, Topic
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#result_set ⇒ Object
readonly
Returns the value of attribute result_set.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes = {}, options = {}) ⇒ Facet
constructor
A new instance of Facet.
Methods inherited from Base
add_attribute, #fetch_full, #full?, override_base_uri
Methods inherited from Client
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ Facet
Returns a new instance of Facet.
16 17 18 19 20 |
# File 'lib/federal_register/facet.rb', line 16 def initialize(attributes={}, ={}) @result_set = .delete(:result_set) super(attributes, ) end |
Instance Attribute Details
#result_set ⇒ Object (readonly)
Returns the value of attribute result_set.
4 5 6 |
# File 'lib/federal_register/facet.rb', line 4 def result_set @result_set end |
Class Method Details
.search(args = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/federal_register/facet.rb', line 10 def self.search(args={}) FederalRegister::FacetResultSet.fetch( url, :query => args, :result_class => self ) end |