class Graphiti::Errors::FilterGroupMissingRequiredFilters
Public Class Methods
new(resource, filter_names, required)
click to toggle source
# File lib/graphiti/errors.rb, line 841 def initialize(resource, filter_names, required) @resource = resource @filter_names = filter_names @required_label = required == :all ? "All" : "One" end
Public Instance Methods
message()
click to toggle source
# File lib/graphiti/errors.rb, line 847 def message <<-MSG.gsub(/\s+/, " ").strip #{@required_label} of the following filters must be provided on resource #{@resource.type}: #{@filter_names.join(", ")} MSG end