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

#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

#insert_property_defaultsObject

Returns the value of attribute insert_property_defaults

Returns:

  • (Object)

    the current value of insert_property_defaults



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

def insert_property_defaults
  @insert_property_defaults
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, insert_property_defaults: self.insert_property_defaults) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# 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,
  insert_property_defaults: self.insert_property_defaults
)
  self.class.new(data, data_pointer, schema, schema_pointer, parent_uri, insert_property_defaults)
end