Class: Rafflesia::CorpuReleaseBackfillData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseBackfillData
- Defined in:
- lib/rafflesia/datasets/corpu_release_backfill_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ alias_publish_count: :alias_publish_count, backend: :backend, corpus: :corpus, current_refs: :current_refs, dry_run: :dry_run, entries: :entries, error_count: :error_count, object_store_root: :object_store_root, publish_aliases: :publish_aliases, registered_count: :registered_count, scanned_count: :scanned_count }.freeze
Instance Attribute Summary collapse
-
#alias_publish_count ⇒ Object
Returns the value of attribute alias_publish_count.
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#corpus ⇒ Object
Returns the value of attribute corpus.
-
#current_refs ⇒ Object
Returns the value of attribute current_refs.
-
#dry_run ⇒ Object
Returns the value of attribute dry_run.
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#error_count ⇒ Object
Returns the value of attribute error_count.
-
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
-
#publish_aliases ⇒ Object
Returns the value of attribute publish_aliases.
-
#registered_count ⇒ Object
Returns the value of attribute registered_count.
-
#scanned_count ⇒ Object
Returns the value of attribute scanned_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseBackfillData
constructor
A new instance of CorpuReleaseBackfillData.
Constructor Details
#initialize(json) ⇒ CorpuReleaseBackfillData
Returns a new instance of CorpuReleaseBackfillData.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @alias_publish_count = hash[:alias_publish_count] @backend = hash[:backend] @corpus = hash[:corpus] @current_refs = hash[:current_refs] || {} @dry_run = hash[:dry_run] @entries = (hash[:entries] || []).map { |item| item ? Rafflesia::CorpuReleaseBackfillEntry.new(item) : nil } @error_count = hash[:error_count] @object_store_root = hash[:object_store_root] @publish_aliases = hash[:publish_aliases] @registered_count = hash[:registered_count] @scanned_count = hash[:scanned_count] end |
Instance Attribute Details
#alias_publish_count ⇒ Object
Returns the value of attribute alias_publish_count.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def alias_publish_count @alias_publish_count end |
#backend ⇒ Object
Returns the value of attribute backend.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def backend @backend end |
#corpus ⇒ Object
Returns the value of attribute corpus.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def corpus @corpus end |
#current_refs ⇒ Object
Returns the value of attribute current_refs.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def current_refs @current_refs end |
#dry_run ⇒ Object
Returns the value of attribute dry_run.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def dry_run @dry_run end |
#entries ⇒ Object
Returns the value of attribute entries.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def entries @entries end |
#error_count ⇒ Object
Returns the value of attribute error_count.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def error_count @error_count end |
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def object_store_root @object_store_root end |
#publish_aliases ⇒ Object
Returns the value of attribute publish_aliases.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def publish_aliases @publish_aliases end |
#registered_count ⇒ Object
Returns the value of attribute registered_count.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def registered_count @registered_count end |
#scanned_count ⇒ Object
Returns the value of attribute scanned_count.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_backfill_data.rb', line 22 def scanned_count @scanned_count end |