Exception: Graphiti::Errors::FilterGroupInvalidRequirement
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource, valid_required_values) ⇒ FilterGroupInvalidRequirement
constructor
A new instance of FilterGroupInvalidRequirement.
- #message ⇒ Object
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
#message ⇒ Object
832 833 834 835 836 837 |
# File 'lib/graphiti/errors.rb', line 832 def <<-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 |