class EasyTalk::Builders::BaseBuilder

def initialize(property_name, schema, options = {}, valid_options = {})

Parameters:
  • valid_options (Hash) -- The acceptable options for the given property type (default: {}).
  • options (Hash) -- The options for the builder (default: {}).
  • schema (Hash) -- A hash representing a json schema object.
  • property_name (Symbol) -- The name of the property.
def initialize(property_name, schema, options = {}, valid_options = {})
  @valid_options = COMMON_OPTIONS.merge(valid_options)
  EasyTalk.assert_valid_property_options(property_name, options, @valid_options.keys)
  @property_name = property_name
  @schema = schema
  @options = options
end