Class: Rafflesia::ArchiveMemberFindData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ArchiveMemberFindData
- Defined in:
- lib/rafflesia/artifacts/archive_member_find_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ ambiguous_query_count: :ambiguous_query_count, archive_format: :archive_format, archive_object_id: :archive_object_id, extracted_count: :extracted_count, inventory_object: :inventory_object, inventory_object_id: :inventory_object_id, inventory_path: :inventory_path, match_count: :match_count, missing_count: :missing_count, object_backed_count: :object_backed_count, output_dir: :output_dir, query_count: :query_count, result_count: :result_count, results: :results, schema_version: :schema_version }.freeze
Instance Attribute Summary collapse
-
#ambiguous_query_count ⇒ Object
Returns the value of attribute ambiguous_query_count.
-
#archive_format ⇒ Object
Returns the value of attribute archive_format.
-
#archive_object_id ⇒ Object
Returns the value of attribute archive_object_id.
-
#extracted_count ⇒ Object
Returns the value of attribute extracted_count.
-
#inventory_object ⇒ Object
Returns the value of attribute inventory_object.
-
#inventory_object_id ⇒ Object
Returns the value of attribute inventory_object_id.
-
#inventory_path ⇒ Object
Returns the value of attribute inventory_path.
-
#match_count ⇒ Object
Returns the value of attribute match_count.
-
#missing_count ⇒ Object
Returns the value of attribute missing_count.
-
#object_backed_count ⇒ Object
Returns the value of attribute object_backed_count.
-
#output_dir ⇒ Object
Returns the value of attribute output_dir.
-
#query_count ⇒ Object
Returns the value of attribute query_count.
-
#result_count ⇒ Object
Returns the value of attribute result_count.
-
#results ⇒ Object
Returns the value of attribute results.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
Instance Method Summary collapse
-
#initialize(json) ⇒ ArchiveMemberFindData
constructor
A new instance of ArchiveMemberFindData.
Constructor Details
#initialize(json) ⇒ ArchiveMemberFindData
Returns a new instance of ArchiveMemberFindData.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 43 def initialize(json) super() hash = self.class.normalize(json) @ambiguous_query_count = hash[:ambiguous_query_count] @archive_format = hash[:archive_format] @archive_object_id = hash[:archive_object_id] @extracted_count = hash[:extracted_count] @inventory_object = hash[:inventory_object] ? Rafflesia::ObjectRef.new(hash[:inventory_object]) : nil @inventory_object_id = hash[:inventory_object_id] @inventory_path = hash[:inventory_path] @match_count = hash[:match_count] @missing_count = hash[:missing_count] @object_backed_count = hash[:object_backed_count] @output_dir = hash[:output_dir] @query_count = hash[:query_count] @result_count = hash[:result_count] @results = (hash[:results] || []).map { |item| item ? Rafflesia::ArchiveMemberFindResult.new(item) : nil } @schema_version = hash[:schema_version] end |
Instance Attribute Details
#ambiguous_query_count ⇒ Object
Returns the value of attribute ambiguous_query_count.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def ambiguous_query_count @ambiguous_query_count end |
#archive_format ⇒ Object
Returns the value of attribute archive_format.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def archive_format @archive_format end |
#archive_object_id ⇒ Object
Returns the value of attribute archive_object_id.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def archive_object_id @archive_object_id end |
#extracted_count ⇒ Object
Returns the value of attribute extracted_count.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def extracted_count @extracted_count end |
#inventory_object ⇒ Object
Returns the value of attribute inventory_object.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def inventory_object @inventory_object end |
#inventory_object_id ⇒ Object
Returns the value of attribute inventory_object_id.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def inventory_object_id @inventory_object_id end |
#inventory_path ⇒ Object
Returns the value of attribute inventory_path.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def inventory_path @inventory_path end |
#match_count ⇒ Object
Returns the value of attribute match_count.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def match_count @match_count end |
#missing_count ⇒ Object
Returns the value of attribute missing_count.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def missing_count @missing_count end |
#object_backed_count ⇒ Object
Returns the value of attribute object_backed_count.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def object_backed_count @object_backed_count end |
#output_dir ⇒ Object
Returns the value of attribute output_dir.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def output_dir @output_dir end |
#query_count ⇒ Object
Returns the value of attribute query_count.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def query_count @query_count end |
#result_count ⇒ Object
Returns the value of attribute result_count.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def result_count @result_count end |
#results ⇒ Object
Returns the value of attribute results.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def results @results end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
26 27 28 |
# File 'lib/rafflesia/artifacts/archive_member_find_data.rb', line 26 def schema_version @schema_version end |