Class: Rafflesia::QueryExportData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::QueryExportData
- Defined in:
- lib/rafflesia/query_exports/query_export_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ columns: :columns, content_type: :content_type, created_at: :created_at, deduplication_key: :deduplication_key, format: :format, id: :id, input_releases: :input_releases, is_complete: :is_complete, job_id: :job_id, lifecycle: :lifecycle, manifest_object_ref: :manifest_object_ref, measurements: :measurements, object: :object, object_ref: :object_ref, query_digest: :query_digest, row_count: :row_count, sources: :sources, url: :url, verified_join_approvals: :verified_join_approvals, verified_join_evidence: :verified_join_evidence }.freeze
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#deduplication_key ⇒ Object
Returns the value of attribute deduplication_key.
-
#format ⇒ Object
Returns the value of attribute format.
-
#id ⇒ Object
Returns the value of attribute id.
-
#input_releases ⇒ Object
Returns the value of attribute input_releases.
-
#is_complete ⇒ Object
Returns the value of attribute is_complete.
-
#job_id ⇒ Object
Returns the value of attribute job_id.
-
#lifecycle ⇒ Object
Returns the value of attribute lifecycle.
-
#manifest_object_ref ⇒ Object
Returns the value of attribute manifest_object_ref.
-
#measurements ⇒ Object
Returns the value of attribute measurements.
-
#object ⇒ Object
Returns the value of attribute object.
-
#object_ref ⇒ Object
Returns the value of attribute object_ref.
-
#query_digest ⇒ Object
Returns the value of attribute query_digest.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#sources ⇒ Object
Returns the value of attribute sources.
-
#url ⇒ Object
Returns the value of attribute url.
-
#verified_join_approvals ⇒ Object
Returns the value of attribute verified_join_approvals.
-
#verified_join_evidence ⇒ Object
Returns the value of attribute verified_join_evidence.
Instance Method Summary collapse
-
#initialize(json) ⇒ QueryExportData
constructor
A new instance of QueryExportData.
Constructor Details
#initialize(json) ⇒ QueryExportData
Returns a new instance of QueryExportData.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @columns = (hash[:columns] || []).map { |item| item ? Rafflesia::TableColumn.new(item) : nil } @content_type = hash[:content_type] @created_at = hash[:created_at] @deduplication_key = hash[:deduplication_key] @format = hash[:format] @id = hash[:id] @input_releases = (hash[:input_releases] || []).map { |item| item ? Rafflesia::DatabaseSnapshot.new(item) : nil } @is_complete = hash[:is_complete] @job_id = hash[:job_id] @lifecycle = hash[:lifecycle] ? Rafflesia::QueryExportLifecycle.new(hash[:lifecycle]) : nil @manifest_object_ref = hash[:manifest_object_ref] ? Rafflesia::ObjectRef.new(hash[:manifest_object_ref]) : nil @measurements = hash[:measurements] ? Rafflesia::QueryMeasurements.new(hash[:measurements]) : nil @object = hash[:object] @object_ref = hash[:object_ref] ? Rafflesia::ObjectRef.new(hash[:object_ref]) : nil @query_digest = hash[:query_digest] @row_count = hash[:row_count] @sources = (hash[:sources] || []).map { |item| item ? Rafflesia::ResolvedQuerySource.new(item) : nil } @url = hash[:url] @verified_join_approvals = (hash[:verified_join_approvals] || []).map { |item| item ? Rafflesia::VerifiedRegistryJoinApproval.new(item) : nil } @verified_join_evidence = (hash[:verified_join_evidence] || []).map { |item| item ? Rafflesia::VerifiedDatabaseJoinEvidence.new(item) : nil } end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def columns @columns end |
#content_type ⇒ Object
Returns the value of attribute content_type.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def content_type @content_type end |
#created_at ⇒ Object
Returns the value of attribute created_at.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def created_at @created_at end |
#deduplication_key ⇒ Object
Returns the value of attribute deduplication_key.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def deduplication_key @deduplication_key end |
#format ⇒ Object
Returns the value of attribute format.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def format @format end |
#id ⇒ Object
Returns the value of attribute id.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def id @id end |
#input_releases ⇒ Object
Returns the value of attribute input_releases.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def input_releases @input_releases end |
#is_complete ⇒ Object
Returns the value of attribute is_complete.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def is_complete @is_complete end |
#job_id ⇒ Object
Returns the value of attribute job_id.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def job_id @job_id end |
#lifecycle ⇒ Object
Returns the value of attribute lifecycle.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def lifecycle @lifecycle end |
#manifest_object_ref ⇒ Object
Returns the value of attribute manifest_object_ref.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def manifest_object_ref @manifest_object_ref end |
#measurements ⇒ Object
Returns the value of attribute measurements.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def measurements @measurements end |
#object ⇒ Object
Returns the value of attribute object.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def object @object end |
#object_ref ⇒ Object
Returns the value of attribute object_ref.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def object_ref @object_ref end |
#query_digest ⇒ Object
Returns the value of attribute query_digest.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def query_digest @query_digest end |
#row_count ⇒ Object
Returns the value of attribute row_count.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def row_count @row_count end |
#sources ⇒ Object
Returns the value of attribute sources.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def sources @sources end |
#url ⇒ Object
Returns the value of attribute url.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def url @url end |
#verified_join_approvals ⇒ Object
Returns the value of attribute verified_join_approvals.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def verified_join_approvals @verified_join_approvals end |
#verified_join_evidence ⇒ Object
Returns the value of attribute verified_join_evidence.
31 32 33 |
# File 'lib/rafflesia/query_exports/query_export_data.rb', line 31 def verified_join_evidence @verified_join_evidence end |