Class: Rafflesia::DatasetSourceSnapshotValidateData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DatasetSourceSnapshotValidateData
- Defined in:
- lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ gates: :gates, ok: :ok, record_count: :record_count, ref: :ref, relation: :relation, source: :source, version: :version }.freeze
Instance Attribute Summary collapse
-
#gates ⇒ Object
Returns the value of attribute gates.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#record_count ⇒ Object
Returns the value of attribute record_count.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#source ⇒ Object
Returns the value of attribute source.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ DatasetSourceSnapshotValidateData
constructor
A new instance of DatasetSourceSnapshotValidateData.
Constructor Details
#initialize(json) ⇒ DatasetSourceSnapshotValidateData
Returns a new instance of DatasetSourceSnapshotValidateData.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @gates = (hash[:gates] || []).map { |item| item ? Rafflesia::DatasetSourceSnapshotGate.new(item) : nil } @ok = hash[:ok] @record_count = hash[:record_count] @ref = hash[:ref] @relation = hash[:relation] @source = hash[:source] @version = hash[:version] end |
Instance Attribute Details
#gates ⇒ Object
Returns the value of attribute gates.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb', line 18 def gates @gates end |
#ok ⇒ Object
Returns the value of attribute ok.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb', line 18 def ok @ok end |
#record_count ⇒ Object
Returns the value of attribute record_count.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb', line 18 def record_count @record_count end |
#ref ⇒ Object
Returns the value of attribute ref.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb', line 18 def ref @ref end |
#relation ⇒ Object
Returns the value of attribute relation.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb', line 18 def relation @relation end |
#source ⇒ Object
Returns the value of attribute source.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb', line 18 def source @source end |
#version ⇒ Object
Returns the value of attribute version.
18 19 20 |
# File 'lib/rafflesia/datasets/dataset_source_snapshot_validate_data.rb', line 18 def version @version end |