Exception: GraphitiSpecHelpers::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.



16
17
18
# File 'lib/graphiti_spec_helpers/errors.rb', line 16

def initialize(name)
  @name = name
end

Instance Method Details

#messageObject



20
21
22
# File 'lib/graphiti_spec_helpers/errors.rb', line 20

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