Sha256: 6e226e130839370902ead1a87fc10a2c3b54cc9cdaeb180eda30e35ce0f07154
Contents?: true
Size: 1.8 KB
Versions: 5
Compression:
Stored size: 1.8 KB
Contents
spec/app/lib/schema_classes/my_schema_with_circular_reference.rb: # frozen_string_literal: true # This file is autogenerated by Deimos, Do NOT modify module Schemas ### Primary Schema Class ### # Autogenerated Schema for Record at com.my-namespace.MySchemaWithCircularReference class MySchemaWithCircularReference < Deimos::SchemaClass::Record ### Attribute Readers ### # @return [Hash<String, Property>] attr_reader :properties ### Attribute Writers ### # @param values [Hash<String, Property>] def properties=(values) @properties = values.transform_values do |value| Property.initialize_from_value(value) end end # @override def initialize(properties: {}) super self.properties = properties end # @override def schema 'MySchemaWithCircularReference' end # @override def namespace 'com.my-namespace' end # @override def to_h { 'properties' => @properties.transform_values { |v| v&.to_h } } end end end spec/app/lib/schema_classes/property.rb: # frozen_string_literal: true # This file is autogenerated by Deimos, Do NOT modify module Schemas ### Primary Schema Class ### # Autogenerated Schema for Record at com.my-namespace.Property class Property < Deimos::SchemaClass::Record ### Attribute Accessors ### # @param value [Boolean, Integer, Integer, Float, Float, String, Array<Property>, Hash<String, Property>] attr_accessor :property # @override def initialize(property: nil) super self.property = property end # @override def schema 'Property' end # @override def namespace 'com.my-namespace' end # @override def to_h { 'property' => @property } end end end
Version data entries
5 entries across 5 versions & 1 rubygems