class Restspec::Schema::Types::NullType

Public Instance Methods

example_for(attribute) click to toggle source

@param attribute [Restspec::Schema::Attribute] the atribute of the schema.

@return nil

# File lib/restspec/schema/types/null_type.rb, line 6
def example_for(attribute)
  nil
end
valid?(attribute, value) click to toggle source

@param attribute [Restspec::Schema::Attribute] the atribute of the schema. @param value [Object] the value of the attribute.

@return [true, false] If the value is nil.

# File lib/restspec/schema/types/null_type.rb, line 14
def valid?(attribute, value)
  value.nil?
end