Class: Rafflesia::CorpuReleaseBenchmarkGate

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#detailObject

Returns the value of attribute detail.



17
18
19
# File 'lib/rafflesia/datasets/corpu_release_benchmark_gate.rb', line 17

def detail
  @detail
end

#gateObject

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_valueObject

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_idObject

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

#statusObject

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_valueObject

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