Class: EasyTalk::Builders::NullBuilder

Inherits:
BaseBuilder show all
Defined in:
lib/easy_talk/builders/null_builder.rb

Overview

builder class for Null properties.

Constant Summary

Constants inherited from BaseBuilder

BaseBuilder::COMMON_OPTIONS

Instance Attribute Summary

Attributes inherited from BaseBuilder

#name, #options, #schema

Instance Method Summary collapse

Methods inherited from BaseBuilder

#build, collection_type?

Constructor Details

#initialize(name, _constraints = {}) ⇒ NullBuilder

Returns a new instance of NullBuilder.



11
12
13
# File 'lib/easy_talk/builders/null_builder.rb', line 11

def initialize(name, _constraints = {})
  super(name, { type: 'null' }, {}, {})
end