Exception: Restspec::Schema::Checker::NoObjectError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ NoObjectError

Returns a new instance of NoObjectError.



153
154
155
# File 'lib/restspec/schema/checker.rb', line 153

def initialize(object)
  self.object = object
end

Instance Attribute Details

#objectObject

Returns the value of attribute object.



151
152
153
# File 'lib/restspec/schema/checker.rb', line 151

def object
  @object
end

Instance Method Details

#to_sObject



157
158
159
# File 'lib/restspec/schema/checker.rb', line 157

def to_s
  "The object #{object}:#{object.class} is not a hash. It doesn't have attributes to be checked"
end