Class: Ecfr::AdminService::IbrCfrRange
- Defined in:
- lib/ecfr/admin_service/ibr_cfr_range.rb,
lib/ecfr/admin_service/ibr_cfr_range/address.rb,
lib/ecfr/admin_service/ibr_cfr_range/organization.rb
Defined Under Namespace
Classes: Address, Organization
Constant Summary collapse
- IBR_CFR_RANGES_PATH =
"v1/incorporation-by-reference"
Constants inherited from Base
Base::SUPPORTED_ARRAY_ACCESSORS
Instance Attribute Summary collapse
-
#addresses ⇒ [Address]
readonly
address information for district offices, etc.
-
#label ⇒ String
readonly
description - generally the agency responsible.
-
#notes ⇒ String
readonly
notes about the IBR content.
-
#organizations ⇒ [Organization]
readonly
array of organizations responsible for IBR materials and more details.
-
#part_range ⇒ String
readonly
the range of parts the IBR item applies to.
-
#title ⇒ Integer
readonly
CFR title number.
Attributes inherited from Base
#metadata, #request_data, #response_status, #results
Class Method Summary collapse
-
.all ⇒ [<IbrCfrRange>]
Retrieve a summarized list of all IBR information.
-
.find(title, part_range) ⇒ <IbrCfrRange>
Retrieve a detailed list of IBR information for the request IBR CFR range.
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 Ecfr::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
Instance Attribute Details
#addresses ⇒ [Address] (readonly)
address information for district offices, etc.
24 25 26 |
# File 'lib/ecfr/admin_service/ibr_cfr_range.rb', line 24 attribute :addresses, type: Array(Address), desc: "address information for district offices, etc." |
#label ⇒ String (readonly)
description - generally the agency responsible
9 10 |
# File 'lib/ecfr/admin_service/ibr_cfr_range.rb', line 9 attribute :label, desc: "description - generally the agency responsible" |
#notes ⇒ String (readonly)
notes about the IBR content
11 12 |
# File 'lib/ecfr/admin_service/ibr_cfr_range.rb', line 11 attribute :notes, desc: "notes about the IBR content" |
#organizations ⇒ [Organization] (readonly)
array of organizations responsible for IBR materials and more details
20 21 22 |
# File 'lib/ecfr/admin_service/ibr_cfr_range.rb', line 20 attribute :organizations, type: Array(Organization), desc: "array of organizations responsible for IBR materials and more details" |
#part_range ⇒ String (readonly)
the range of parts the IBR item applies to
13 14 |
# File 'lib/ecfr/admin_service/ibr_cfr_range.rb', line 13 attribute :part_range, desc: "the range of parts the IBR item applies to" |
#title ⇒ Integer (readonly)
CFR title number
16 17 18 |
# File 'lib/ecfr/admin_service/ibr_cfr_range.rb', line 16 attribute :title, type: :integer, desc: "CFR title number" |
Class Method Details
.all ⇒ [<IbrCfrRange>]
Retrieve a summarized list of all IBR information
36 37 38 39 40 41 |
# File 'lib/ecfr/admin_service/ibr_cfr_range.rb', line 36 def self.all perform( :get, "#{IBR_CFR_RANGES_PATH}.json" ) end |
.find(title, part_range) ⇒ <IbrCfrRange>
Retrieve a detailed list of IBR information for the request IBR CFR range
51 52 53 54 55 56 57 |
# File 'lib/ecfr/admin_service/ibr_cfr_range.rb', line 51 def self.find(title, part_range) perform( :get, ibr_cfr_range_path(title, part_range), perform_options: {attributes_key: "ibr_cfr_range"} ) end |