class Graphiti::Errors::UnsupportedSort
Public Class Methods
new(resource, attribute, allowlist, direction)
click to toggle source
# File lib/graphiti/errors.rb, line 134 def initialize(resource, attribute, allowlist, direction) @resource = resource @attribute = attribute @allowlist = allowlist @direction = direction end
Public Instance Methods
message()
click to toggle source
# File lib/graphiti/errors.rb, line 141 def message <<~MSG #{@resource.class.name}: tried to sort on attribute #{@attribute.inspect}, but passed #{@direction.inspect} when only #{@allowlist.inspect} is supported. MSG end