Exception: Restspec::Schema::Checker::NoObjectError
- Inherits:
-
StandardError
- Object
- StandardError
- Restspec::Schema::Checker::NoObjectError
- Includes:
- ActionView::Helpers::TextHelper
- Defined in:
- lib/restspec/schema/checker.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object) ⇒ NoObjectError
constructor
A new instance of NoObjectError.
- #to_s ⇒ Object
Constructor Details
#initialize(object) ⇒ NoObjectError
Returns a new instance of NoObjectError.
155 156 157 |
# File 'lib/restspec/schema/checker.rb', line 155 def initialize(object) self.object = object end |
Instance Attribute Details
#object ⇒ Object
Returns the value of attribute object.
153 154 155 |
# File 'lib/restspec/schema/checker.rb', line 153 def object @object end |
Instance Method Details
#to_s ⇒ Object
159 160 161 |
# File 'lib/restspec/schema/checker.rb', line 159 def to_s "The object #{truncate object.to_s, escape: false}:#{object.class} is not a hash. It doesn't have attributes to be checked" end |