Exception: MediaTypes::AssertionError
- Inherits:
-
StandardError
- Object
- StandardError
- MediaTypes::AssertionError
- Defined in:
- lib/media_types/scheme.rb
Instance Attribute Summary collapse
-
#fixture_errors ⇒ Object
readonly
Returns the value of attribute fixture_errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ AssertionError
constructor
A new instance of AssertionError.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ AssertionError
Returns a new instance of AssertionError.
24 25 26 |
# File 'lib/media_types/scheme.rb', line 24 def initialize(errors) @fixture_errors = errors end |
Instance Attribute Details
#fixture_errors ⇒ Object (readonly)
Returns the value of attribute fixture_errors.
32 33 34 |
# File 'lib/media_types/scheme.rb', line 32 def fixture_errors @fixture_errors end |
Instance Method Details
#message ⇒ Object
28 29 30 |
# File 'lib/media_types/scheme.rb', line 28 def fixture_errors.map(&:message).join(', ') end |