Sha256: 01288f43c6292ca1c31a2d9ff853befcf7a3e153bf576b02e580ff01f6c224b5
Contents?: true
Size: 1.27 KB
Versions: 41
Compression:
Stored size: 1.27 KB
Contents
# 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.MySchemaWithUniqueId class MySchemaWithUniqueId < Deimos::SchemaClass::Record ### Attribute Accessors ### # @return [Integer] attr_accessor :id # @return [String] attr_accessor :test_id # @return [Integer] attr_accessor :some_int # @return [String] attr_accessor :message_id # @return [String] attr_accessor :timestamp # @override def initialize(id: nil, test_id: nil, some_int: nil, message_id: nil, timestamp: nil) super self.id = id self.test_id = test_id self.some_int = some_int self.message_id = message_id self.timestamp = timestamp end # @override def schema 'MySchemaWithUniqueId' end # @override def namespace 'com.my-namespace' end # @override def as_json(_opts={}) { 'id' => @id, 'test_id' => @test_id, 'some_int' => @some_int, 'message_id' => @message_id, 'timestamp' => @timestamp } end end end; end
Version data entries
41 entries across 41 versions & 1 rubygems