Class: Rafflesia::CacheBenchmarkSuiteGate

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/cache/cache_benchmark_suite_gate.rb

Constant Summary collapse

HASH_ATTRS =
{
  name: :name,
  passed: :passed,
  reasons: :reasons
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CacheBenchmarkSuiteGate

Returns a new instance of CacheBenchmarkSuiteGate.



19
20
21
22
23
24
25
# File 'lib/rafflesia/cache/cache_benchmark_suite_gate.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @name = hash[:name]
  @passed = hash[:passed]
  @reasons = (hash[:reasons] || [])
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



14
15
16
# File 'lib/rafflesia/cache/cache_benchmark_suite_gate.rb', line 14

def name
  @name
end

#passedObject

Returns the value of attribute passed.



14
15
16
# File 'lib/rafflesia/cache/cache_benchmark_suite_gate.rb', line 14

def passed
  @passed
end

#reasonsObject

Returns the value of attribute reasons.



14
15
16
# File 'lib/rafflesia/cache/cache_benchmark_suite_gate.rb', line 14

def reasons
  @reasons
end