class Graphiti::Errors::ResourceEndpointConflict

Public Class Methods

new(path, action, resource_a, resource_b) click to toggle source
# File lib/graphiti/errors.rb, line 463
def initialize(path, action, resource_a, resource_b)
  @path = path
  @action = action
  @resource_a = resource_a
  @resource_b = resource_b
end

Public Instance Methods

message() click to toggle source
# File lib/graphiti/errors.rb, line 470
      def message
        <<~MSG
          Both '#{@resource_a}' and '#{@resource_b}' are associated to endpoint #{@path}##{@action}!

          Only one resource can be associated to a given url/verb combination.
        MSG
      end