Exception: Restspec::Schema::Checker::NoRootFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- Restspec::Schema::Checker::NoRootFoundError
- Defined in:
- lib/restspec/schema/checker.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
Returns the value of attribute object.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(object, schema) ⇒ NoRootFoundError
constructor
A new instance of NoRootFoundError.
- #to_s ⇒ Object
Constructor Details
#initialize(object, schema) ⇒ NoRootFoundError
Returns a new instance of NoRootFoundError.
140 141 142 143 |
# File 'lib/restspec/schema/checker.rb', line 140 def initialize(object, schema) self.object = object self.schema = schema end |
Instance Attribute Details
#object ⇒ Object
Returns the value of attribute object.
138 139 140 |
# File 'lib/restspec/schema/checker.rb', line 138 def object @object end |
#schema ⇒ Object
Returns the value of attribute schema.
138 139 140 |
# File 'lib/restspec/schema/checker.rb', line 138 def schema @schema end |
Instance Method Details
#to_s ⇒ Object
145 146 147 |
# File 'lib/restspec/schema/checker.rb', line 145 def to_s "The object #{object}:#{object.class} does not contain a root called #{schema.root_name}" end |