Class: Rafflesia::CorpuReleaseValidateData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseValidateData
- Defined in:
- lib/rafflesia/datasets/corpu_release_validate_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ backend: :backend, corpus: :corpus, gates: :gates, object_store_root: :object_store_root, ok: :ok, ref: :ref, release: :release, release_id: :release_id, smoke_search: :smoke_search }.freeze
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#corpus ⇒ Object
Returns the value of attribute corpus.
-
#gates ⇒ Object
Returns the value of attribute gates.
-
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#release ⇒ Object
Returns the value of attribute release.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#smoke_search ⇒ Object
Returns the value of attribute smoke_search.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseValidateData
constructor
A new instance of CorpuReleaseValidateData.
Constructor Details
#initialize(json) ⇒ CorpuReleaseValidateData
Returns a new instance of CorpuReleaseValidateData.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @backend = hash[:backend] @corpus = hash[:corpus] @gates = (hash[:gates] || []).map { |item| item ? Rafflesia::CorpuReleasePublishGate.new(item) : nil } @object_store_root = hash[:object_store_root] @ok = hash[:ok] @ref = hash[:ref] @release = hash[:release] ? Rafflesia::CorpuReleaseRecord.new(hash[:release]) : nil @release_id = hash[:release_id] @smoke_search = hash[:smoke_search] ? Rafflesia::CorpuReleaseSearchData.new(hash[:smoke_search]) : nil end |
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def backend @backend end |
#corpus ⇒ Object
Returns the value of attribute corpus.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def corpus @corpus end |
#gates ⇒ Object
Returns the value of attribute gates.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def gates @gates end |
#object_store_root ⇒ Object
Returns the value of attribute object_store_root.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def object_store_root @object_store_root end |
#ok ⇒ Object
Returns the value of attribute ok.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def ok @ok end |
#ref ⇒ Object
Returns the value of attribute ref.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def ref @ref end |
#release ⇒ Object
Returns the value of attribute release.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def release @release end |
#release_id ⇒ Object
Returns the value of attribute release_id.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def release_id @release_id end |
#smoke_search ⇒ Object
Returns the value of attribute smoke_search.
20 21 22 |
# File 'lib/rafflesia/datasets/corpu_release_validate_data.rb', line 20 def smoke_search @smoke_search end |