class Graphiti::Errors::RequiredFilter
Public Class Methods
new(resource, attributes)
click to toggle source
# File lib/graphiti/errors.rb, line 793 def initialize(resource, attributes) @resource = resource @attributes = Array(attributes) end
Public Instance Methods
message()
click to toggle source
# File lib/graphiti/errors.rb, line 798 def message if @attributes.length > 1 "The required filters \"#{@attributes.join(", ")}\" on resource #{@resource.class} were not provided" else "The required filter \"#{@attributes[0]}\" on resource #{@resource.class} was not provided" end end