Exception: Graphiti::Errors::FilterGroupInvalidRequirement

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource, valid_required_values) ⇒ FilterGroupInvalidRequirement

Returns a new instance of FilterGroupInvalidRequirement.



827
828
829
830
# File 'lib/graphiti/errors.rb', line 827

def initialize(resource, valid_required_values)
  @resource = resource
  @valid_required_values = valid_required_values
end

Instance Method Details

#messageObject



832
833
834
835
836
837
# File 'lib/graphiti/errors.rb', line 832

def message
  <<-MSG.gsub(/\s+/, " ").strip
    The filter group required: value on resource #{@resource.class} must be one of the following:
    #{@valid_required_values.join(", ")}
  MSG
end