spec/snapshots/namespace_map.snap in deimos-ruby-1.24.2 vs spec/snapshots/namespace_map.snap in deimos-ruby-2.0.0.pre.alpha1

- old
+ new

@@ -957,9 +957,58 @@ end end end; end +spec/app/lib/schema_classes/schemas/my_namespace/my_schema_with_title.rb: +# frozen_string_literal: true + +# This file is autogenerated by Deimos, Do NOT modify +module Schemas; module MyNamespace + ### Primary Schema Class ### + # Autogenerated Schema for Record at com.my-namespace.MySchemaWithTitle + class MySchemaWithTitle < Deimos::SchemaClass::Record + + ### Attribute Accessors ### + # @return [String] + attr_accessor :test_id + # @return [Integer] + attr_accessor :some_int + # @return [String] + attr_accessor :title + + # @override + def initialize(test_id: nil, + some_int: nil, + title: nil) + super + self.test_id = test_id + self.some_int = some_int + self.title = title + end + + # @override + def schema + 'MySchemaWithTitle' + end + + # @override + def namespace + 'com.my-namespace' + end + + # @override + def as_json(_opts={}) + { + 'test_id' => @test_id, + 'some_int' => @some_int, + 'title' => @title + } + end + end +end; end + + spec/app/lib/schema_classes/schemas/my_namespace/my_schema_with_unique_id.rb: # frozen_string_literal: true # This file is autogenerated by Deimos, Do NOT modify module Schemas; module MyNamespace