Exception: Graphiti::SpecHelpers::Errors::NoAttribute

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/spec_helpers/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ NoAttribute

Returns a new instance of NoAttribute.



17
18
19
# File 'lib/graphiti/spec_helpers/errors.rb', line 17

def initialize(name)
  @name = name
end

Instance Method Details

#messageObject



21
22
23
# File 'lib/graphiti/spec_helpers/errors.rb', line 21

def message
  "No attribute '#{@name}' in JSON response node!"
end