Exception: Restspec::Schema::Checker::NoAttributeError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/restspec/schema/checker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, attribute) ⇒ NoAttributeError

Returns a new instance of NoAttributeError


108
109
110
111
# File 'lib/restspec/schema/checker.rb', line 108

def initialize(object, attribute)
  self.object = object
  self.attribute = attribute
end

Instance Attribute Details

#attributeObject

Returns the value of attribute attribute


106
107
108
# File 'lib/restspec/schema/checker.rb', line 106

def attribute
  @attribute
end

#objectObject

Returns the value of attribute object


106
107
108
# File 'lib/restspec/schema/checker.rb', line 106

def object
  @object
end

Instance Method Details

#to_sObject


113
114
115
# File 'lib/restspec/schema/checker.rb', line 113

def to_s
  "The object #{object} does not have the attribute #{attribute.name}"
end