Exception: Holotype::CollectionNormalizer::ExpectedArrayLikeCollectionError
- Inherits:
-
StandardError
- Object
- StandardError
- Holotype::CollectionNormalizer::ExpectedArrayLikeCollectionError
- Defined in:
- lib/holotype/collection_normalizer/expected_array_like_collection_error.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
Instance Method Summary collapse
-
#initialize(attribute) ⇒ ExpectedArrayLikeCollectionError
constructor
A new instance of ExpectedArrayLikeCollectionError.
- #message ⇒ Object
Constructor Details
#initialize(attribute) ⇒ ExpectedArrayLikeCollectionError
Returns a new instance of ExpectedArrayLikeCollectionError.
6 7 8 |
# File 'lib/holotype/collection_normalizer/expected_array_like_collection_error.rb', line 6 def initialize attribute @attribute = attribute end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
4 5 6 |
# File 'lib/holotype/collection_normalizer/expected_array_like_collection_error.rb', line 4 def attribute @attribute end |
Instance Method Details
#message ⇒ Object
10 11 12 13 |
# File 'lib/holotype/collection_normalizer/expected_array_like_collection_error.rb', line 10 def "Attribute `#{attribute}` expected Array-like collection, received " \ "Hash-like collection".freeze end |