Class: Rafflesia::CacheBenchmarkSuiteGate
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CacheBenchmarkSuiteGate
- 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
-
#name ⇒ Object
Returns the value of attribute name.
-
#passed ⇒ Object
Returns the value of attribute passed.
-
#reasons ⇒ Object
Returns the value of attribute reasons.
Instance Method Summary collapse
-
#initialize(json) ⇒ CacheBenchmarkSuiteGate
constructor
A new instance of CacheBenchmarkSuiteGate.
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
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_gate.rb', line 14 def name @name end |
#passed ⇒ Object
Returns the value of attribute passed.
14 15 16 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_gate.rb', line 14 def passed @passed end |
#reasons ⇒ Object
Returns the value of attribute reasons.
14 15 16 |
# File 'lib/rafflesia/cache/cache_benchmark_suite_gate.rb', line 14 def reasons @reasons end |