Class: FederalRegister::Facet::PublicInspectionIssue::TypeFiling

Inherits:
FederalRegister::Facet::PublicInspectionIssue show all
Defined in:
lib/federal_register/facet/public_inspection_issue/type_filing.rb

Defined Under Namespace

Classes: DocumentTypeFacet

Constant Summary

Constants inherited from Base

Base::INTEGER_CLASS

Instance Attribute Summary collapse

Attributes inherited from FederalRegister::Facet::PublicInspectionIssue

#conditions

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from FederalRegister::Facet::PublicInspectionIssue

#regular_filings, search, #special_filings

Methods inherited from Base

add_attribute, #fetch_full, #full?, override_base_uri

Methods inherited from Client

get

Constructor Details

#initialize(attributes, conditions, options = {}) ⇒ TypeFiling

Returns a new instance of TypeFiling.



4
5
6
7
# File 'lib/federal_register/facet/public_inspection_issue/type_filing.rb', line 4

def initialize(attributes, conditions, options={})
  @search_conditions = conditions
  @document_types = attributes.map{|k,v| DocumentTypeFacet.new(k, v, @search_conditions)}
end

Instance Attribute Details

#document_typesObject (readonly)

Returns the value of attribute document_types.



2
3
4
# File 'lib/federal_register/facet/public_inspection_issue/type_filing.rb', line 2

def document_types
  @document_types
end

#search_conditionsObject (readonly)

Returns the value of attribute search_conditions.



2
3
4
# File 'lib/federal_register/facet/public_inspection_issue/type_filing.rb', line 2

def search_conditions
  @search_conditions
end