Class: Arthur::Error
- Inherits:
-
Object
- Object
- Arthur::Error
- Defined in:
- lib/arthur/error.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Class Method Summary collapse
Instance Method Summary collapse
- #count_in_environment(env) ⇒ Object
-
#initialize(data) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(data) ⇒ Error
Returns a new instance of Error.
11 12 13 |
# File 'lib/arthur/error.rb', line 11 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/arthur/error.rb', line 9 def data @data end |
Class Method Details
Instance Method Details
#count_in_environment(env) ⇒ Object
15 16 17 |
# File 'lib/arthur/error.rb', line 15 def count_in_environment(env) @data['release_stages'].fetch(env, 0) end |