class SoberSwag::Reporting::Input::Null
Null
input values. Validates that the input is null.
Public Instance Methods
<=>(other)
click to toggle source
# File lib/sober_swag/reporting/input/null.rb, line 22 def <=>(other) eql?(other) ? 0 : nil end
call(value)
click to toggle source
# File lib/sober_swag/reporting/input/null.rb, line 8 def call(value) return nil if value.nil? Report::Value.new(['was not nil']) end
eql?(other)
click to toggle source
# File lib/sober_swag/reporting/input/null.rb, line 18 def eql?(other) other.class == self.class end
hash()
click to toggle source
# File lib/sober_swag/reporting/input/null.rb, line 14 def hash [self.class.hash, 1].hash end
swagger_schema()
click to toggle source
# File lib/sober_swag/reporting/input/null.rb, line 28 def swagger_schema [{ type: 'null' }, {}] end