Class: JSONSchemer::Schema::Base::Instance

Inherits:
Struct
  • Object
show all
Defined in:
lib/json_schemer/schema/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#after_property_validationObject

Returns the value of attribute after_property_validation

Returns:

  • (Object)

    the current value of after_property_validation



7
8
9
# File 'lib/json_schemer/schema/base.rb', line 7

def after_property_validation
  @after_property_validation
end

#before_property_validationObject

Returns the value of attribute before_property_validation

Returns:

  • (Object)

    the current value of before_property_validation



7
8
9
# File 'lib/json_schemer/schema/base.rb', line 7

def before_property_validation
  @before_property_validation
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



7
8
9
# File 'lib/json_schemer/schema/base.rb', line 7

def data
  @data
end

#data_pointerObject

Returns the value of attribute data_pointer

Returns:

  • (Object)

    the current value of data_pointer



7
8
9
# File 'lib/json_schemer/schema/base.rb', line 7

def data_pointer
  @data_pointer
end

#parent_uriObject

Returns the value of attribute parent_uri

Returns:

  • (Object)

    the current value of parent_uri



7
8
9
# File 'lib/json_schemer/schema/base.rb', line 7

def parent_uri
  @parent_uri
end

#schemaObject

Returns the value of attribute schema

Returns:

  • (Object)

    the current value of schema



7
8
9
# File 'lib/json_schemer/schema/base.rb', line 7

def schema
  @schema
end

#schema_pointerObject

Returns the value of attribute schema_pointer

Returns:

  • (Object)

    the current value of schema_pointer



7
8
9
# File 'lib/json_schemer/schema/base.rb', line 7

def schema_pointer
  @schema_pointer
end

Instance Method Details

#merge(data: self.data, data_pointer: self.data_pointer, schema: self.schema, schema_pointer: self.schema_pointer, parent_uri: self.parent_uri, before_property_validation: self.before_property_validation, after_property_validation: self.after_property_validation) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/json_schemer/schema/base.rb', line 8

def merge(
  data: self.data,
  data_pointer: self.data_pointer,
  schema: self.schema,
  schema_pointer: self.schema_pointer,
  parent_uri: self.parent_uri,
  before_property_validation: self.before_property_validation,
  after_property_validation: self.after_property_validation
)
  self.class.new(data, data_pointer, schema, schema_pointer, parent_uri, before_property_validation, after_property_validation)
end