Class: JSONSchemer::Schema::Base::Instance
- Inherits:
-
Struct
- Object
- Struct
- JSONSchemer::Schema::Base::Instance
- Defined in:
- lib/json_schemer/schema/base.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#data_pointer ⇒ Object
Returns the value of attribute data_pointer.
-
#insert_property_defaults ⇒ Object
Returns the value of attribute insert_property_defaults.
-
#parent_uri ⇒ Object
Returns the value of attribute parent_uri.
-
#schema ⇒ Object
Returns the value of attribute schema.
-
#schema_pointer ⇒ Object
Returns the value of attribute schema_pointer.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
7 8 9 |
# File 'lib/json_schemer/schema/base.rb', line 7 def data @data end |
#data_pointer ⇒ Object
Returns the value of attribute data_pointer
7 8 9 |
# File 'lib/json_schemer/schema/base.rb', line 7 def data_pointer @data_pointer end |
#insert_property_defaults ⇒ Object
Returns the value of attribute insert_property_defaults
7 8 9 |
# File 'lib/json_schemer/schema/base.rb', line 7 def insert_property_defaults @insert_property_defaults end |
#parent_uri ⇒ Object
Returns the value of attribute parent_uri
7 8 9 |
# File 'lib/json_schemer/schema/base.rb', line 7 def parent_uri @parent_uri end |
#schema ⇒ Object
Returns the value of attribute schema
7 8 9 |
# File 'lib/json_schemer/schema/base.rb', line 7 def schema @schema end |
#schema_pointer ⇒ Object
Returns the value of attribute 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 |