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

Version Path
deimos-ruby-2.0.0.pre.alpha2 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-2.0.0.pre.alpha1 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.24.2 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.24.1 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.24.0 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.3 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.2 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.1.pre.beta6 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.1.pre.beta5 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.1.pre.beta4 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.1.pre.beta3 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.1.pre.beta2 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.1.pre.beta1 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.23.0 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.22.5 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.22.4 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.22.3 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.22.2 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.22.1 spec/schemas/my_namespace/my_schema_with_unique_id.rb
deimos-ruby-1.22 spec/schemas/my_namespace/my_schema_with_unique_id.rb