class Render::Errors::Schema::InvalidRequire
Attributes
schema_definition[RW]
Public Class Methods
new(schema_definition)
click to toggle source
# File lib/render/errors.rb, line 73 def initialize(schema_definition) self.schema_definition = schema_definition end
Public Instance Methods
to_s()
click to toggle source
# File lib/render/errors.rb, line 77 def to_s required_attributes = schema_definition.fetch(:required, []) "Could not require the following attributes: #{required_attributes}. This should be an array of attributes for #{schema_definition}" end