Class: Smash::CloudPowers::SmashError::ErrorCollection
- Inherits:
-
Struct
- Object
- Struct
- Smash::CloudPowers::SmashError::ErrorCollection
- Defined in:
- lib/cloud_powers/smash_error.rb
Instance Attribute Summary collapse
-
#max ⇒ Object
Returns the value of attribute max.
-
#storage ⇒ Object
Returns the value of attribute storage.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#max ⇒ Object
Returns the value of attribute max
10 11 12 |
# File 'lib/cloud_powers/smash_error.rb', line 10 def max @max end |
#storage ⇒ Object
Returns the value of attribute storage
10 11 12 |
# File 'lib/cloud_powers/smash_error.rb', line 10 def storage @storage end |
#type ⇒ Object
Returns the value of attribute type
10 11 12 |
# File 'lib/cloud_powers/smash_error.rb', line 10 def type @type end |
Instance Method Details
#push!(err_msg) ⇒ Object
11 12 13 14 |
# File 'lib/cloud_powers/smash_error.rb', line 11 def push!(err_msg) storage << err_msg throw :die if storage[type].count >= max end |