Class: Ecfr::VersionerService::IssuePackage
- Defined in:
- lib/ecfr/versioner_service/issue_package.rb,
lib/ecfr/versioner_service/issue_package/issue_volume.rb,
lib/ecfr/versioner_service/issue_package/title_version.rb,
lib/ecfr/versioner_service/issue_package/sha_comparison.rb
Overview
NOTE: IssuePackages are an internal API and are not publicly accessible
Issue packages represent the data we receive from our upstream datasource and we then process into XML for ingestion. Various SHAs are calculated to allow for error checking and discrepency identification against the GPO bulk data XML.
Each issue package will contain a file for each volume in each title that are changing in that issue.
Defined Under Namespace
Classes: IssueVolume, ShaComparison, TitleVersion
Constant Summary collapse
- ISSUE_PACKAGES_PATH =
"v1/issue_packages"
Constants inherited from Base
Base::SUPPORTED_ARRAY_ACCESSORS
Instance Attribute Summary collapse
-
#id ⇒ Integer
readonly
issue pacakge database id.
-
#issue_date ⇒ Date
readonly
issue date this package represents.
-
#issue_volumes ⇒ [IssueVolume]
readonly
array of the volumes in this issue package.
-
#received_at ⇒ Datetime
readonly
when this issue package was received.
Attributes inherited from Base
#metadata, #request_data, #response_status, #results
Class Method Summary collapse
-
.all ⇒ <IssuePackage>
Retreives the list of Issue Packages from the last 30 days.
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
Instance Attribute Details
#id ⇒ Integer (readonly)
issue pacakge database id
17 18 19 |
# File 'lib/ecfr/versioner_service/issue_package.rb', line 17 attribute :id, type: :integer, desc: "issue pacakge database id" |
#issue_date ⇒ Date (readonly)
issue date this package represents
21 22 23 |
# File 'lib/ecfr/versioner_service/issue_package.rb', line 21 attribute :issue_date, type: :date, desc: "issue date this package represents" |
#issue_volumes ⇒ [IssueVolume] (readonly)
array of the volumes in this issue package
25 26 27 |
# File 'lib/ecfr/versioner_service/issue_package.rb', line 25 attribute :issue_volumes, type: Array(IssueVolume), desc: "array of the volumes in this issue package" |
#received_at ⇒ Datetime (readonly)
when this issue package was received
29 30 31 |
# File 'lib/ecfr/versioner_service/issue_package.rb', line 29 attribute :received_at, type: :datetime, desc: "when this issue package was received" |
Class Method Details
.all ⇒ <IssuePackage>
Retreives the list of Issue Packages from the last 30 days
Issue Volumes
41 42 43 44 45 46 |
# File 'lib/ecfr/versioner_service/issue_package.rb', line 41 def self.all perform( :get, ISSUE_PACKAGES_PATH ) end |