Sha256: 5ae3feb2d5f3fe4b1176625cb7c1aa5d2424da59999747cda87da93b63ab287f
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
# 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.MySchema class MySchema < Deimos::SchemaClass::Record ### Attribute Readers ### # @return [MySchemaKey] attr_reader :payload_key ### Attribute Accessors ### # @param value [String] attr_accessor :test_id # @param value [Integer] attr_accessor :some_int ### Attribute Writers ### # @param value [MySchemaKey] def payload_key=(value) @payload_key = MySchemaKey.initialize_from_value(value) end # @override def initialize(test_id: nil, some_int: nil, payload_key: nil) super self.test_id = test_id self.some_int = some_int self.payload_key = payload_key end # @override def schema 'MySchema' end # @override def namespace 'com.my-namespace' end # @override def as_json(_opts={}) { 'test_id' => @test_id, 'some_int' => @some_int, 'payload_key' => @payload_key&.as_json } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
deimos-ruby-1.16.2 | spec/schemas/my_schema.rb |
deimos-ruby-1.16.1 | spec/schemas/my_schema.rb |
deimos-ruby-1.16.0 | spec/schemas/my_schema.rb |