Class: Rafflesia::CorpuReleaseBenchmarkGate
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseBenchmarkGate
- Defined in:
- lib/rafflesia/datasets/corpu_release_benchmark_gate.rb
Constant Summary collapse
- HASH_ATTRS =
{ detail: :detail, gate: :gate, observed_value: :observed_value, release_id: :release_id, status: :status, threshold_value: :threshold_value }.freeze
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#gate ⇒ Object
Returns the value of attribute gate.
-
#observed_value ⇒ Object
Returns the value of attribute observed_value.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#threshold_value ⇒ Object
Returns the value of attribute threshold_value.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseBenchmarkGate
constructor
A new instance of CorpuReleaseBenchmarkGate.
Constructor Details
#initialize(json) ⇒ CorpuReleaseBenchmarkGate
Returns a new instance of CorpuReleaseBenchmarkGate.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/datasets/corpu_release_benchmark_gate.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @detail = hash[:detail] @gate = hash[:gate] @observed_value = hash[:observed_value] @release_id = hash[:release_id] @status = hash[:status] @threshold_value = hash[:threshold_value] end |
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_benchmark_gate.rb', line 17 def detail @detail end |
#gate ⇒ Object
Returns the value of attribute gate.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_benchmark_gate.rb', line 17 def gate @gate end |
#observed_value ⇒ Object
Returns the value of attribute observed_value.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_benchmark_gate.rb', line 17 def observed_value @observed_value end |
#release_id ⇒ Object
Returns the value of attribute release_id.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_benchmark_gate.rb', line 17 def release_id @release_id end |
#status ⇒ Object
Returns the value of attribute status.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_benchmark_gate.rb', line 17 def status @status end |
#threshold_value ⇒ Object
Returns the value of attribute threshold_value.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_benchmark_gate.rb', line 17 def threshold_value @threshold_value end |