Exception: Restspec::Schema::Checker::NoAttributeError
- Inherits:
-
StandardError
- Object
- StandardError
- Restspec::Schema::Checker::NoAttributeError
- Defined in:
- lib/restspec/schema/checker.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
Returns the value of attribute attribute.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(object, attribute) ⇒ NoAttributeError
constructor
A new instance of NoAttributeError.
- #to_s ⇒ Object
Constructor Details
#initialize(object, attribute) ⇒ NoAttributeError
Returns a new instance of NoAttributeError.
113 114 115 116 |
# File 'lib/restspec/schema/checker.rb', line 113 def initialize(object, attribute) self.object = object self.attribute = attribute end |
Instance Attribute Details
#attribute ⇒ Object
Returns the value of attribute attribute.
111 112 113 |
# File 'lib/restspec/schema/checker.rb', line 111 def attribute @attribute end |
#object ⇒ Object
Returns the value of attribute object.
111 112 113 |
# File 'lib/restspec/schema/checker.rb', line 111 def object @object end |
Instance Method Details
#to_s ⇒ Object
118 119 120 |
# File 'lib/restspec/schema/checker.rb', line 118 def to_s "The object #{object} does not have the attribute #{attribute.name}" end |